10% seo-stats-widget

Code Review | SEO Stats Widget

WordPress plugin SEO Stats Widget scored 10% from 54 tests.

About plugin

  • Plugin page: seo-stats-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2013
  • Latest release: Sep 2, 2014
  • Number of updates: 13
  • Update frequency: every 19.5 days
  • Top authors: sunnyverma1984 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 13,375 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/seo-stats-widget/lib/seostatsClass.php+66
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.88MB] [CPU: ▼53.82ms] Passed 4 tests

A check of server-side resources used by SEO Stats Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.355.85 ▼41.30
Dashboard /wp-admin2.13 ▼1.176.47 ▼45.06
Posts /wp-admin/edit.php2.13 ▼1.226.40 ▼41.66
Add New Post /wp-admin/post-new.php2.13 ▼3.766.16 ▼87.27
Media Library /wp-admin/upload.php2.13 ▼1.105.53 ▼30.11

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_wpseostats_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by SEO Stats Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲21013.40 ▼0.981.61 ▼0.1940.06 ▼5.94
Dashboard /wp-admin2,351 ▲1635.85 ▼0.05106.13 ▼7.9040.23 ▼8.30
Posts /wp-admin/edit.php2,091 ▲22.04 ▼0.0235.72 ▲0.2732.56 ▼4.26
Add New Post /wp-admin/post-new.php1,544 ▲1018.20 ▼4.91617.10 ▼65.9773.66 ▲18.39
Media Library /wp-admin/upload.php1,390 ▲24.24 ▼0.0097.62 ▼14.8541.38 ▼6.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 gracefully
    • > Deprecated in wp-content/plugins/seo-stats-widget/lib/seostatsClass.php+66
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_wpseostats_widget
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-stats-widget/stats.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

seo-stats-widget/stats.php 85% from 13 tests

The principal PHP file in "SEO Stats Widget" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("seo-stats-widget.php" instead of "stats.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected297 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2723294
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.00
▷ Minimum class complexity6.00
▷ Maximum class complexity20.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected