78% seo-wordpress

Code Review | Praison SEO WordPress

WordPress plugin Praison SEO WordPress scored78%from 54 tests.

About plugin

  • Plugin page: seo-wordpress
  • Plugin version: 4.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 14, 2012
  • Latest release: Feb 9, 2023
  • Number of updates: 85
  • Update frequency: every 46.5 days
  • Top authors: mervinpraison (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /128,977 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼4.31ms] Passed 4 tests

Analyzing server-side resources used by Praison SEO WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3942.01 ▲3.01
Dashboard /wp-admin3.74 ▲0.3944.95 ▼10.60
Posts /wp-admin/edit.php3.78 ▲0.4249.04 ▲0.84
Add New Post /wp-admin/post-new.php6.37 ▲0.4884.81 ▼6.45
Media Library /wp-admin/upload.php3.62 ▲0.3833.25 ▼1.01
Breadcrumbs /wp-admin/admin.php?page=seo-wordpress/admin/seo-breadcrumbs.php3.5835.04
RSS /wp-admin/admin.php?page=seo-wordpress/admin/seo-rss.php3.5637.97
Authorship, Analytics /wp-admin/admin.php?page=seo-wordpress/admin/seo-authorship.php3.5737.18
Dashboard /wp-admin/admin.php?page=seo-wordpress/admin/seo-dashboard.php3.6039.74
XML Sitemap /wp-admin/admin.php?page=seo-wordpress/admin/seo-xml-sitemap.php3.5733.51

Server storage [IO: ▲5.96MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 27 new options
New WordPress options
zeo_activate_title
db_upgraded
can_compress_scripts
widget_recent-comments
zeo_common_tag_title
zeo_analytics_id
zeo_canonical_url
zeo_home_keywords
zeo_common_error_title
zeo_home_description
...

Browser metrics Passed 4 tests

Praison SEO WordPress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲10714.34 ▼0.027.54 ▲5.7936.64 ▼18.45
Dashboard /wp-admin2,237 ▲575.53 ▼0.0794.11 ▲5.8977.00 ▲38.57
Posts /wp-admin/edit.php2,145 ▲452.59 ▲0.6048.05 ▲10.9634.61 ▲2.52
Add New Post /wp-admin/post-new.php1,586 ▲6018.86 ▼3.95650.89 ▼4.6336.33 ▼19.99
Media Library /wp-admin/upload.php1,445 ▲484.98 ▲0.77105.64 ▼2.0470.84 ▲25.38
Breadcrumbs /wp-admin/admin.php?page=seo-wordpress/admin/seo-breadcrumbs.php1,5095.8558.23120.98
RSS /wp-admin/admin.php?page=seo-wordpress/admin/seo-rss.php1,3455.6655.6172.32
Authorship, Analytics /wp-admin/admin.php?page=seo-wordpress/admin/seo-authorship.php1,4105.6066.2679.78
Dashboard /wp-admin/admin.php?page=seo-wordpress/admin/seo-dashboard.php1,4492.8133.2141.09
XML Sitemap /wp-admin/admin.php?page=seo-wordpress/admin/seo-xml-sitemap.php1,4755.5653.0556.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 27 options
    • widget_theysaidso_widget
    • zeo_home_keywords
    • zeo_common_search_title
    • zeo_blog_keywords
    • zeo_home_description
    • widget_recent-comments
    • zeo_tag_nofollow
    • zeo_category_nofollow
    • zeo_activate_title
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/seo-wordpress/admin/seo-sidebar.php
    • > /wp-content/plugins/seo-wordpress/css/xml-sitemap-xsl.php
    • > /wp-content/plugins/seo-wordpress/admin/seo-footer.php
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seo-wordpress/seo-metabox-class.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-wordpress/seo-global-functions.php:16
    • > PHP Warning
      include(): Failed opening 'WP_PLUGIN_DIR/seo-wordpress/seo-authorship-badge.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/seo-wordpress/seo-authorship.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/seo-wordpress/seo-authorship-icon.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/seo-wordpress/seo-authorship.php:71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/seo-wordpress/seo-wordpress.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-wordpress/admin/seo-dashboard.php:114
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-wordpress/seo-sitemaps.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/seo-wordpress/admin/seo-breadcrumbs.php:5
    • > PHP Warning
      include(WP_PLUGIN_DIR/seo-wordpress/seo-authorship-icon.php): failed to open stream: No such file or directory in wp-content/plugins/seo-wordpress/seo-authorship.php on line 25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #4, #5, #6 in seo-wordpress/assets to your readme.txt
You can look at the official readme.txt

seo-wordpress/seo-wordpress.php 92% from 13 tests

"Praison SEO WordPress" version 4.0.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 234 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected44,379 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript85,03412,65928,537
CSS101,171449,846
PHP238262992,798
SVG1002,671
XSLT2100306
Markdown1970161
JSON20047
YAML1007
Sass2006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity43.38
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity7.40
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png2.93KB0.27KB▼ 90.95%