10% post-seo-score-checker

Code Review | Post SEO Score Checker

WordPress plugin Post SEO Score Checker scored10%from 54 tests.

About plugin

  • Plugin page: post-seo-score-ch...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7
  • WordPress version: 6.3.1
  • First release: Apr 11, 2017
  • Latest release: Apr 9, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: prepostseo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,592 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PSSC_WP_Seo::pssc_wpa_install() should not be called statically

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.10ms] Passed 4 tests

Server-side resources used by Post SEO Score Checker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0231.98 ▼4.71
Dashboard /wp-admin3.36 ▲0.0146.16 ▼12.46
Posts /wp-admin/edit.php3.41 ▲0.0551.63 ▲4.34
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.35 ▼23.56
Media Library /wp-admin/upload.php3.28 ▲0.0542.60 ▲8.07

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Post SEO Score Checker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.63 ▼0.741.56 ▼0.0933.20 ▼3.49
Dashboard /wp-admin2,230 ▲455.91 ▲0.01105.64 ▼1.2594.85 ▲49.91
Posts /wp-admin/edit.php2,128 ▲392.08 ▲0.0234.41 ▼4.0253.25 ▲17.97
Add New Post /wp-admin/post-new.php6,576 ▲5,04728.10 ▲4.951,047.55 ▲381.8852.83 ▼3.36
Media Library /wp-admin/upload.php1,427 ▲394.27 ▲0.1695.33 ▼20.4596.07 ▲46.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/post-seo-score-checker/settingPage.php
    • > /wp-content/plugins/post-seo-score-checker/lib/density.php
    • > /wp-content/plugins/post-seo-score-checker/lib/simple_html_dom.php
    • > /wp-content/plugins/post-seo-score-checker/actions.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-seo-score-checker/post-seo-score-checker.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: seo score, seo, post seo score, post seo, wordpress seo

post-seo-score-checker/post-seo-score-checker.php 92% from 13 tests

"Post SEO Score Checker" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected9,553 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS7152373,158
JavaScript65011132,812
LESS1328341,510
PHP62812411,360
SVG200663
HTML118050

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity95.67
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods81
▷ Static methods00.00%
▷ Public methods6580.25%
▷ Protected methods1619.75%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imgs/cross_shield.png2.65KB1.55KB▼ 41.53%
imgs/info.png2.13KB1.71KB▼ 19.99%
imgs/2.png0.56KB0.50KB▼ 10.57%
imgs/error.png0.72KB0.75KB0.00%
imgs/tick.png0.44KB0.40KB▼ 9.31%