94% supercharge

Code Review | SuperCharge

WordPress plugin SuperCharge scored 94% from 54 tests.

About plugin

  • Plugin page: supercharge
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.4
  • WordPress version: 5.9.2
  • First release: Jun 9, 2015
  • Latest release: Nov 23, 2015
  • Number of updates: 6
  • Update frequency: every 27.8 days
  • Top authors: supercharge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 696 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼290.45ms] Passed 4 tests

Server-side resources used by SuperCharge
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0259.50 ▲13.99
Dashboard /wp-admin3.42 ▲0.0133.17 ▲0.91
Posts /wp-admin/edit.php3.65 ▲0.0138.73 ▲2.25
Add New Post /wp-admin/post-new.php6.93 ▼0.0794.17 ▼1,162.62
Media Library /wp-admin/upload.php3.31 ▲0.0122.87 ▼2.35

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SuperCharge
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲6316.20 ▲0.586.72 ▲0.843.24 ▲0.81
Dashboard /wp-admin2,914 ▲566.15 ▼0.07121.14 ▼10.26153.36 ▼8.10
Posts /wp-admin/edit.php2,713 ▲193.24 ▼0.0064.37 ▲1.25143.99 ▲6.79
Add New Post /wp-admin/post-new.php1,700 ▼5218.87 ▼1.97399.03 ▼49.50153.39 ▼1.97
Media Library /wp-admin/upload.php1,720 ▲225.52 ▲0.01149.22 ▼1.18190.65 ▲4.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/supercharge/supercharge.php:12

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: free apps, one-click, google analytics, social share, supercharge...

supercharge/supercharge.php Passed 13 tests

The primary PHP file in "SuperCharge" version 1.0.0 is used by WordPress to initiate all plugin functionality
74 characters long description:
This plugin adds SuperCharge tab to your website to manage your site apps.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin143 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111073
CSS110070

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.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
8 PNG files occupy 0.47MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/step2img.png33.88KB8.21KB▼ 75.76%
assests/Screenshot-1.png56.35KB19.48KB▼ 65.43%
assests/Screenshot-5.png62.31KB20.83KB▼ 66.57%
assests/Screenshot-3.png88.96KB30.57KB▼ 65.64%
assests/Screenshot-2.png40.14KB14.07KB▼ 64.95%