SlideShare uma empresa Scribd logo
1 de 2
WordPress Coding Standards.
The purpose of the WordPress coding standards document istocreate abaseline for collaboration andreview within various aspects of the HTML
project andthis document will helpdevelopers tounderstand howhe/she canwrite better code, sothat other developers canbetter understand it.
Do’s
Keep Your WordPress Site Updated:
Asawell maintained open source project, WordPress isupdated
frequently. Eachupdate will not onlyoffer newfeatures, but alsofix
security issuesand bugs. Your WordPress theme andplugins may
have regular updates, too. Asawebsite owner, it’syour responsibility
tokeep your WordPress site, theme, andplugins updated tothe latest
versions. Not doing somay makeyour siteslowand unreliable, and
make you vulnerable tosecurity threats.
Use Excerpts on Homepage and Archives:
Bydefault, WordPress displays the fullcontent of eacharticle onyour
homepage andarchives. This meansyour homepage, categories, tags,
andother archive pages willallloadslower. Inorder tospeed upyour
loading timesfor archive pages, youcanset your site todisplay
excerpts insteadof the full content.
.
Split Comments into Pages:
Getting lots of comments onyour blog posts? Congratulations! That’s
agreat indicator of anengaged audience. But the downside is,loading
allthose comments canimpact your site’s speed. WordPress comes
with abuilt-in solution for that. SimplygotoSettings »Discussion and
check the box next tothe “Break comments intopages” option.
Use a Theme Optimized for Speed:
Whenselecting aWordPress theme for your website, it’simportant to
payspecial attention tospeed optimization. Some beautiful and
impressive-looking themes areactually poorly coded andcanslow
your site waydown.
Use a Faster Slider Plugin:
Sliders are another common webdesignelement that canmake your
website slow. Evenifyour imagesarealloptimized asdescribed
above, apoorly coded slider plugin willmeanallyour work iswasted.
Wecompared the best WordPress slider plugins for performance and
features, and Soliloquy was the fastest byfar.
Reduce External HTTP Requests:
Many WordPress plugins andthemes load allkinds of filesfrom
other websites. These filescaninclude scripts, stylesheets, andimages
from external resources like Google, Facebook, analytics services, and
soon.
Employ a robust backup strategy and disaster
mitigation plan:
The worst canhappen toeventhe mostseasoned ITteamsinthe
most robust data centers. Ensure WordPress installations arebacked
upoff -site,on schedule, andoptionally, inanencrypted fashion.
Going astepfurther andhaving asecondary andtertiary backup site
gives extra reassurance that alldata will be stored safelyandretrieval
will be possible when needed. For user-friendly, off-site backups,
VaultPress isagreat tool.
Enforce a strong “Dev/Staging to Production”
process:
The importance of aregimented process for moving development
work from testing/staging toproduction can’t be highlighted enough.
Pushing untested changes directly toproduction canhave disastrous
results. Encourage teamstotest andtest often instaging andthey
should be able todosopainlessly withtools built for them.
Make WordPress core code updates quickly:
Keeping “core” up-to-date isincredibly important for security. Un-
patched core installations are oftenaprimary attack vector since
manyof the WordPress updates andpatches are designed to
improve security. Using atool like WP Updates Notifier canhelp
organizations stayontop ofimportant updates tothe WordPress
core. It’s important toalways watch for updates andtomake them as
soon aspossible.
Proactively upgrade plugins and themes as new
versions become available:
Along with outdated core WordPress components (aslistedabove),
out-of-date plugins andthemes are among the most easily
compromised components ofaWordPress installation, particularly
due toalackof current patching.
Enforce strong passwords:
Weakpasswords areone of the easiestways tofallvictim tobrute
force or “dictionary” attacks. Itisimperative toensure allusers use
strong passwords. Aneasywaytoachieve this isbyenforcing use of
the “Force Strong Passwords” plugin
Prevent sniffed login attempts:
Securing the wp-login.php andwp-admin areas ofaWordPress
installation with anSSL certificate and/or VPNsolution cangreatly
reduce sniffedloginattempts. Additionally, utilizing aloginsolution
basedon directory services such asGoogle Apps Authentication,
LDAP, or SAML isanimportant stepinadding security tothe login
process. Agreat pluginfor Google Apps Authentication is:Google
Apps Login.
Remove the “admin” account:
The “admin” account isadefault account onevery WordPress
installation. If the “admin” account iskept active andnot disabled or
removed, halfof the puzzle isalready solved for anattacker.
Ensure proper file permissions, isolate sites, and
decouple databases:
Whenrunning multiple WordPress installations for different
stakeholders inanenvironment, remember these sitesshould be
isolated from eachother. Should one customer’s filesystem become
compromised, there shouldn’t be easyaccess toanother customer’s
data. Keeping careful tabs onproper filepermissions iscritical in bring
your closer tobeing like that infallible developer we’d alllove tobe..
Don’ts
 Don't loadscripts ifthey arenot required.
 Don't deploy unnecessary files andsettings toproduction
servers.
 Don't stickwith the default "wp_" table prefixes. (Change
the database prefix tosomething unusual.)
 Don't install WordPress inthe /WordPress subdirectory.
 Don’t reuse anexisting database user for the WordPress
database.
 Don’t use the default ‘admin’ username. (Useaunique,
private username).
 Don't forget toenable SEO.
 Don’t use too manycategories.
 Don’t leave your website without abackup.

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

How to Ensure You're Launching the Most Secure Website - Michael Tremante
How to Ensure You're Launching the Most Secure Website - Michael TremanteHow to Ensure You're Launching the Most Secure Website - Michael Tremante
How to Ensure You're Launching the Most Secure Website - Michael Tremante
 
Extending WordPress - a guide to building your first plugin
Extending WordPress -  a guide to building your first pluginExtending WordPress -  a guide to building your first plugin
Extending WordPress - a guide to building your first plugin
 
DevOps and Application Security
DevOps and Application SecurityDevOps and Application Security
DevOps and Application Security
 
Rapid Development with Azure Spring Cloud
Rapid Development with Azure Spring CloudRapid Development with Azure Spring Cloud
Rapid Development with Azure Spring Cloud
 
Its just a flesh wound
Its just a flesh woundIts just a flesh wound
Its just a flesh wound
 
WordPress security & performance a beginners guide
WordPress security & performance a beginners guideWordPress security & performance a beginners guide
WordPress security & performance a beginners guide
 
Follow before a drupal security release by shamit khemka
Follow before a drupal security release by shamit khemkaFollow before a drupal security release by shamit khemka
Follow before a drupal security release by shamit khemka
 
Java – azure integration
Java – azure integrationJava – azure integration
Java – azure integration
 
20 tips to Improving Your WordPress Site...for Beginners
20 tips to Improving Your WordPress Site...for Beginners20 tips to Improving Your WordPress Site...for Beginners
20 tips to Improving Your WordPress Site...for Beginners
 
Should you be using WordPress as your web platform?
Should you be using WordPress as your web platform?Should you be using WordPress as your web platform?
Should you be using WordPress as your web platform?
 
How WordPress Works
How WordPress WorksHow WordPress Works
How WordPress Works
 
Wordpress CMS tutorial and guide manual
Wordpress CMS tutorial and guide manualWordpress CMS tutorial and guide manual
Wordpress CMS tutorial and guide manual
 
Owning word press all you need to know as a wordpress developer by lutaaya ...
Owning word press   all you need to know as a wordpress developer by lutaaya ...Owning word press   all you need to know as a wordpress developer by lutaaya ...
Owning word press all you need to know as a wordpress developer by lutaaya ...
 
Module 1
Module 1Module 1
Module 1
 
Ignite - selfhosting WordPress - tips and tricks
Ignite - selfhosting WordPress - tips and tricksIgnite - selfhosting WordPress - tips and tricks
Ignite - selfhosting WordPress - tips and tricks
 
March 2016 WordPress News
March 2016 WordPress NewsMarch 2016 WordPress News
March 2016 WordPress News
 
20160308 apex sso
20160308 apex sso20160308 apex sso
20160308 apex sso
 
15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes 15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes
 
Deploy, manage, and scale your apps
Deploy, manage, and scale your appsDeploy, manage, and scale your apps
Deploy, manage, and scale your apps
 
How to install addons
How to install addons   How to install addons
How to install addons
 

Semelhante a Wordpress best practices

How To Lock Down And Secure Your Wordpress
How To Lock Down And Secure Your WordpressHow To Lock Down And Secure Your Wordpress
How To Lock Down And Secure Your Wordpress
Chelsea O'Brien
 
Wordpress security issues
Wordpress security issuesWordpress security issues
Wordpress security issues
Deepu Thomas
 

Semelhante a Wordpress best practices (20)

WordPress Hardening: Strategies to Secure & Protect Your Website
WordPress Hardening: Strategies to Secure & Protect Your WebsiteWordPress Hardening: Strategies to Secure & Protect Your Website
WordPress Hardening: Strategies to Secure & Protect Your Website
 
Security, more important than ever!
Security, more important than ever!Security, more important than ever!
Security, more important than ever!
 
Locking down word press
Locking down word pressLocking down word press
Locking down word press
 
Tips to improve word press security ppt
Tips to improve word press security pptTips to improve word press security ppt
Tips to improve word press security ppt
 
WordPress Security
WordPress SecurityWordPress Security
WordPress Security
 
RUNNING A SECURITY CHECK FOR YOUR WORDPRESS SITE
RUNNING A SECURITY CHECK FOR YOUR WORDPRESS SITERUNNING A SECURITY CHECK FOR YOUR WORDPRESS SITE
RUNNING A SECURITY CHECK FOR YOUR WORDPRESS SITE
 
7 must have word press plugins for web developers
7 must have word press plugins for web developers7 must have word press plugins for web developers
7 must have word press plugins for web developers
 
Hardening WordPress - SAScon Manchester 2013 (WordPress Security)
Hardening WordPress - SAScon Manchester 2013 (WordPress Security)Hardening WordPress - SAScon Manchester 2013 (WordPress Security)
Hardening WordPress - SAScon Manchester 2013 (WordPress Security)
 
WordPress security
WordPress securityWordPress security
WordPress security
 
WordPress Security 2018
WordPress Security 2018WordPress Security 2018
WordPress Security 2018
 
WordPress End-User Security
WordPress End-User SecurityWordPress End-User Security
WordPress End-User Security
 
WordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, LondonWordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, London
 
Protect Your WordPress From The Inside Out
Protect Your WordPress From The Inside OutProtect Your WordPress From The Inside Out
Protect Your WordPress From The Inside Out
 
How To Lock Down And Secure Your Wordpress
How To Lock Down And Secure Your WordpressHow To Lock Down And Secure Your Wordpress
How To Lock Down And Secure Your Wordpress
 
Website security
Website securityWebsite security
Website security
 
Securing Word Press Blog
Securing Word Press BlogSecuring Word Press Blog
Securing Word Press Blog
 
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 201340 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
 
Wordpress security issues
Wordpress security issuesWordpress security issues
Wordpress security issues
 
Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011
 
Securing Your WordPress Website by Vlad Lasky
Securing Your WordPress Website by Vlad LaskySecuring Your WordPress Website by Vlad Lasky
Securing Your WordPress Website by Vlad Lasky
 

Mais de Allanki Srinivas (6)

Static site best practices
Static site best practicesStatic site best practices
Static site best practices
 
Ionic best practices
Ionic best practicesIonic best practices
Ionic best practices
 
Ionic best practices
Ionic best practicesIonic best practices
Ionic best practices
 
Angular best practices
Angular best practicesAngular best practices
Angular best practices
 
Web accessibility
Web accessibilityWeb accessibility
Web accessibility
 
Melukolupu
MelukolupuMelukolupu
Melukolupu
 

Último

%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Último (20)

%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 

Wordpress best practices

  • 1. WordPress Coding Standards. The purpose of the WordPress coding standards document istocreate abaseline for collaboration andreview within various aspects of the HTML project andthis document will helpdevelopers tounderstand howhe/she canwrite better code, sothat other developers canbetter understand it. Do’s Keep Your WordPress Site Updated: Asawell maintained open source project, WordPress isupdated frequently. Eachupdate will not onlyoffer newfeatures, but alsofix security issuesand bugs. Your WordPress theme andplugins may have regular updates, too. Asawebsite owner, it’syour responsibility tokeep your WordPress site, theme, andplugins updated tothe latest versions. Not doing somay makeyour siteslowand unreliable, and make you vulnerable tosecurity threats. Use Excerpts on Homepage and Archives: Bydefault, WordPress displays the fullcontent of eacharticle onyour homepage andarchives. This meansyour homepage, categories, tags, andother archive pages willallloadslower. Inorder tospeed upyour loading timesfor archive pages, youcanset your site todisplay excerpts insteadof the full content. . Split Comments into Pages: Getting lots of comments onyour blog posts? Congratulations! That’s agreat indicator of anengaged audience. But the downside is,loading allthose comments canimpact your site’s speed. WordPress comes with abuilt-in solution for that. SimplygotoSettings »Discussion and check the box next tothe “Break comments intopages” option. Use a Theme Optimized for Speed: Whenselecting aWordPress theme for your website, it’simportant to payspecial attention tospeed optimization. Some beautiful and impressive-looking themes areactually poorly coded andcanslow your site waydown. Use a Faster Slider Plugin: Sliders are another common webdesignelement that canmake your website slow. Evenifyour imagesarealloptimized asdescribed above, apoorly coded slider plugin willmeanallyour work iswasted. Wecompared the best WordPress slider plugins for performance and features, and Soliloquy was the fastest byfar. Reduce External HTTP Requests: Many WordPress plugins andthemes load allkinds of filesfrom other websites. These filescaninclude scripts, stylesheets, andimages from external resources like Google, Facebook, analytics services, and soon. Employ a robust backup strategy and disaster mitigation plan: The worst canhappen toeventhe mostseasoned ITteamsinthe most robust data centers. Ensure WordPress installations arebacked upoff -site,on schedule, andoptionally, inanencrypted fashion. Going astepfurther andhaving asecondary andtertiary backup site gives extra reassurance that alldata will be stored safelyandretrieval will be possible when needed. For user-friendly, off-site backups, VaultPress isagreat tool. Enforce a strong “Dev/Staging to Production” process: The importance of aregimented process for moving development work from testing/staging toproduction can’t be highlighted enough. Pushing untested changes directly toproduction canhave disastrous results. Encourage teamstotest andtest often instaging andthey should be able todosopainlessly withtools built for them. Make WordPress core code updates quickly: Keeping “core” up-to-date isincredibly important for security. Un- patched core installations are oftenaprimary attack vector since manyof the WordPress updates andpatches are designed to improve security. Using atool like WP Updates Notifier canhelp organizations stayontop ofimportant updates tothe WordPress core. It’s important toalways watch for updates andtomake them as soon aspossible. Proactively upgrade plugins and themes as new versions become available: Along with outdated core WordPress components (aslistedabove), out-of-date plugins andthemes are among the most easily compromised components ofaWordPress installation, particularly due toalackof current patching. Enforce strong passwords: Weakpasswords areone of the easiestways tofallvictim tobrute force or “dictionary” attacks. Itisimperative toensure allusers use strong passwords. Aneasywaytoachieve this isbyenforcing use of the “Force Strong Passwords” plugin Prevent sniffed login attempts: Securing the wp-login.php andwp-admin areas ofaWordPress installation with anSSL certificate and/or VPNsolution cangreatly reduce sniffedloginattempts. Additionally, utilizing aloginsolution basedon directory services such asGoogle Apps Authentication, LDAP, or SAML isanimportant stepinadding security tothe login process. Agreat pluginfor Google Apps Authentication is:Google Apps Login. Remove the “admin” account: The “admin” account isadefault account onevery WordPress installation. If the “admin” account iskept active andnot disabled or removed, halfof the puzzle isalready solved for anattacker. Ensure proper file permissions, isolate sites, and decouple databases: Whenrunning multiple WordPress installations for different stakeholders inanenvironment, remember these sitesshould be isolated from eachother. Should one customer’s filesystem become compromised, there shouldn’t be easyaccess toanother customer’s data. Keeping careful tabs onproper filepermissions iscritical in bring your closer tobeing like that infallible developer we’d alllove tobe.. Don’ts  Don't loadscripts ifthey arenot required.  Don't deploy unnecessary files andsettings toproduction servers.  Don't stickwith the default "wp_" table prefixes. (Change the database prefix tosomething unusual.)  Don't install WordPress inthe /WordPress subdirectory.  Don’t reuse anexisting database user for the WordPress database.
  • 2.  Don’t use the default ‘admin’ username. (Useaunique, private username).  Don't forget toenable SEO.  Don’t use too manycategories.  Don’t leave your website without abackup.