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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 59.50 ▲13.99 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.17 ▲0.91 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.73 ▲2.25 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.07 | 94.17 ▼1,162.62 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 22.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲63 | 16.20 ▲0.58 | 6.72 ▲0.84 | 3.24 ▲0.81 |
Dashboard /wp-admin | 2,914 ▲56 | 6.15 ▼0.07 | 121.14 ▼10.26 | 153.36 ▼8.10 |
Posts /wp-admin/edit.php | 2,713 ▲19 | 3.24 ▼0.00 | 64.37 ▲1.25 | 143.99 ▲6.79 |
Add New Post /wp-admin/post-new.php | 1,700 ▼52 | 18.87 ▼1.97 | 399.03 ▼49.50 | 153.39 ▼1.97 |
Media Library /wp-admin/upload.php | 1,720 ▲22 | 5.52 ▲0.01 | 149.22 ▼1.18 | 190.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 10 | 73 |
CSS | 1 | 10 | 0 | 70 |
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 code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/step2img.png | 33.88KB | 8.21KB | ▼ 75.76% |
assests/Screenshot-1.png | 56.35KB | 19.48KB | ▼ 65.43% |
assests/Screenshot-5.png | 62.31KB | 20.83KB | ▼ 66.57% |
assests/Screenshot-3.png | 88.96KB | 30.57KB | ▼ 65.64% |
assests/Screenshot-2.png | 40.14KB | 14.07KB | ▼ 64.95% |