73% platinum-seo-pack

Code Review | Platinum SEO

WordPress plugin Platinum SEO scored 73% from 54 tests.

About plugin

  • Plugin page: platinum-seo-pack
  • Plugin version: 2.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Jun 25, 2008
  • Latest release: Aug 25, 2021
  • Number of updates: 82
  • Update frequency: every 58.7 days
  • Top authors: Rajesh Babu (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

20,000+ active / 1,317,079 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.57MB] [CPU: ▼133.43ms] Passed 4 tests

Server-side resources used by Platinum SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.07 ▲0.3540.58 ▲19.92
Dashboard /wp-admin3.72 ▲0.6641.71 ▼3.21
Posts /wp-admin/edit.php3.78 ▲0.6752.41 ▲6.30
Add New Post /wp-admin/post-new.php6.14 ▲0.70117.61 ▼545.04
Media Library /wp-admin/upload.php3.60 ▲0.5943.79 ▲8.25
Platinum SEO Redirections Manager /wp-admin/tools.php?page=redirectionmanager3.6937.03
Platinum SEO 404 Manager /wp-admin/tools.php?page=manager4043.6741.84
Tools /wp-admin/admin.php?page=psp-tools-by-techblissonline3.7143.62
Redirections /wp-admin/admin.php?page=redirectionmanager3.5843.76
Manage 404 Errors /wp-admin/admin.php?page=manager4043.5736.83
Setup wizard /wp-admin/admin.php?page=wizard3.6442.08
Social /wp-admin/admin.php?page=psp-social-by-techblissonline3.6142.75
SEO /wp-admin/admin.php?page=platinum-seo-social-pack-by-techblissonline3.6146.67
Role Manager /wp-admin/admin.php?page=pspp-caps3.5731.10

Server storage [IO: ▲1.89MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 85 new files
Database: 5 new tables, 3 new options
New tables
wp_psp_redirections
wp_psp_404_log
wp_psp_redirections_log
wp_tempmeta
wp_platinumseometa
New WordPress options
psp_db_version
psp_sitewide_settings
psp_version

Browser metrics Passed 4 tests

Checking browser requirements for Platinum SEO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,945 ▲34916.40 ▲1.157.60 ▲0.4047.10 ▼3.87
Dashboard /wp-admin3,125 ▲1946.30 ▲0.37134.58 ▼8.47130.62 ▲23.86
Posts /wp-admin/edit.php2,925 ▲1863.00 ▲0.3168.45 ▼2.21111.74 ▲26.64
Add New Post /wp-admin/post-new.php4,878 ▲3,20223.29 ▲4.46482.71 ▲113.57150.94 ▲37.61
Media Library /wp-admin/upload.php1,878 ▲685.33 ▲0.32134.78 ▼14.26140.70 ▲21.94
Platinum SEO Redirections Manager /wp-admin/tools.php?page=redirectionmanager1,6462.4056.9280.72
Platinum SEO 404 Manager /wp-admin/tools.php?page=manager4041,6132.3856.8672.15
Tools /wp-admin/admin.php?page=psp-tools-by-techblissonline1,9803.7184.70116.73
Redirections /wp-admin/admin.php?page=redirectionmanager1,6462.3856.6176.60
Manage 404 Errors /wp-admin/admin.php?page=manager4041,6102.3752.3372.09
Setup wizard /wp-admin/admin.php?page=wizard1,5283.6676.77105.60
Social /wp-admin/admin.php?page=psp-social-by-techblissonline2,5313.8178.70165.13
SEO /wp-admin/admin.php?page=platinum-seo-social-pack-by-techblissonline3,1864.16110.79196.26
Role Manager /wp-admin/admin.php?page=pspp-caps4,5723.41141.61150.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • wp_tempmeta
    • wp_psp_redirections_log
    • wp_psp_404_log
    • wp_psp_redirections
    • wp_platinumseometa
  • Zombie WordPress options were found after uninstall: 3 options
    • psp_sitewide_settings
    • psp_db_version
    • psp_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PspSettings' not found in wp-content/plugins/platinum-seo-pack/psp-include/settings/psp_social_settings.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PSP_Sitemaps_Provider' not found in wp-content/plugins/platinum-seo-pack/psp-include/sitemap/inc/providers/class-wp-sitemaps-posts.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/platinum-seo-pack/psp-include/settings/psp_bulk_edit_renderer.php:15
    • > PHP Notice
      Undefined variable: psp_meta_type in wp-content/plugins/platinum-seo-pack/psp-include/settings/psp_bulk_edit_renderer.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/platinum-seo-pack/psp-include/settings/psp_tools_renderer.php:239
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/platinum-seo-pack/psp-include/settings/psp_basic_metabox_renderer.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/platinum-seo-pack/psp-include/settings/psp_basic_social_metabox_renderer.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PSP_Sitemaps_Provider' not found in wp-content/plugins/platinum-seo-pack/psp-include/sitemap/inc/providers/class-wp-sitemaps-taxonomies.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/platinum-seo-pack/psp-include/settings/psp_premiumad_metabox_renderer.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/platinum-seo-pack/psp-include/wizard/psp_wizard_finishbtn_renderer.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: The official readme.txt might help

platinum-seo-pack/platinum-seo-pack.php 92% from 13 tests

The principal PHP file in "Platinum SEO" v. 2.4.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin19,500 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP425,5455,14717,496
CSS101073601,151
JavaScript203950474
XSLT4410379

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 129)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity145.54
▷ Minimum class complexity3.00
▷ Maximum class complexity926.00
Average method complexity9.40
▷ Minimum method complexity1.00
▷ Maximum method complexity129.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes13.57%
▷ Concrete classes2796.43%
▷ Final classes00.00%
Methods486
▷ Static methods193.91%
▷ Public methods39681.48%
▷ Protected methods91.85%
▷ Private methods8116.67%
Functions13
▷ Named functions861.54%
▷ Anonymous functions538.46%
Constants11
▷ Global constants763.64%
▷ Class constants436.36%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techblissonline-logo.png13.52KB6.43KB▼ 52.48%
psp-include/settings/snippet-cache.png0.17KB0.13KB▼ 21.26%