10% wp-seo-supercharger

Code Review | WP SEO Supercharger

WordPress plugin WP SEO Supercharger scored10%from 54 tests.

About plugin

  • Plugin page: wp-seo-supercharger
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8.3
  • WordPress version: 6.3.1
  • First release: Mar 2, 2013
  • Latest release: Apr 23, 2014
  • Number of updates: 4
  • Update frequency: every 104.2 days
  • Top authors: wordpressplugindeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,387 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
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-seo-supercharger/wp_seo_supercharger.php+528
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.05MB] [CPU: ▼7.67ms] Passed 4 tests

Analyzing server-side resources used by WP SEO Supercharger
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▼0.5317.87 ▼20.76
Dashboard /wp-admin3.41 ▲0.1148.86 ▼1.63
Posts /wp-admin/edit.php3.52 ▲0.1749.02 ▼3.00
Add New Post /wp-admin/post-new.php5.99 ▲0.1093.08 ▼4.16
Media Library /wp-admin/upload.php3.33 ▲0.1034.96 ▼2.77

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
WPSEOSupercharger
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP SEO Supercharger
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.35 ▲0.001.78 ▼0.0342.79 ▲0.98
Dashboard /wp-admin2,208 ▲375.50 ▼0.1183.35 ▼14.3739.80 ▼1.71
Posts /wp-admin/edit.php2,119 ▲191.99 ▲0.0439.32 ▲0.2336.18 ▼0.88
Add New Post /wp-admin/post-new.php1,539 ▲1323.17 ▲0.06680.17 ▼51.0555.92 ▲2.64
Media Library /wp-admin/upload.php1,419 ▲194.17 ▲0.0195.46 ▼17.9146.44 ▼5.63

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • WPSEOSupercharger
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-seo-supercharger/wp_seo_supercharger.php:23
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-seo-supercharger/wp_seo_supercharger.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-seo-supercharger/wp_seo_supercharger_settings_page.php:2
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-seo-supercharger/wp_seo_supercharger.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-seo-supercharger/wp_seo_supercharger.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (How it works), #2 (General Settings), #3 (Post Settings)
You can take inspiration from this readme.txt

wp-seo-supercharger/index.php 92% from 13 tests

The main PHP script in "WP SEO Supercharger" version 0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-seo-supercharger.php" instead of "index.php")

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
No dangerous file extensions were detected902 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP324810620
CSS12372250
JavaScript15022
Markdown14010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity101.00
▷ Minimum class complexity101.00
▷ Maximum class complexity101.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods51100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
19 PNG files occupy 0.21MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/images/request.png2.18KB1.71KB▼ 21.36%
static/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
screenshot-1.png83.67KB33.68KB▼ 59.75%
static/images/ui-icons_ffffff_256x240.png4.27KB4.11KB▼ 3.78%
static/images/ui-icons_0073ea_256x240.png4.27KB4.11KB▼ 3.78%