Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼147.14ms] Passed 4 tests
An overview of server-side resources used by Scorpion PPF Product Extension
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.69 ▼0.03 | 24.50 ▲2.96 |
Dashboard /wp-admin | 3.08 ▲0.03 | 42.21 ▼1.69 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 43.16 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.55 ▼577.10 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 27.86 ▼10.04 |
Scorpion PPF /wp-admin/options-general.php?page=scorpion_ppf_admin | 3.03 | 30.70 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- Illegal file modification found: 8 files (0.00KB) outside of "wp-content/plugins/scorpion-ppf-product-extension/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/scorpion-ppf-product-extension/colorbox/colorbox-master/content/Icon\357\200\215"
- (new file) "wp-content/plugins/scorpion-ppf-product-extension/colorbox/Icon\357\200\215"
- (new file) "wp-content/plugins/scorpion-ppf-product-extension/css/Icon\357\200\215"
- (new file) "wp-content/plugins/scorpion-ppf-product-extension/inc/Icon\357\200\215"
- (new file) "wp-content/plugins/scorpion-ppf-product-extension/colorbox/colorbox-master/i18n/Icon\357\200\215"
- (new file) "wp-content/plugins/scorpion-ppf-product-extension/colorbox/colorbox-master/Icon\357\200\215"
- (new file) "wp-content/plugins/scorpion-ppf-product-extension/colorbox/images/Icon\357\200\215"
- (new file) "wp-content/plugins/scorpion-ppf-product-extension/Icon\357\200\215"
Filesystem: 71 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_scorpion_ppf_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Scorpion PPF Product Extension
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,261 ▼345 | 16.10 ▲0.46 | 0.44 ▼9.33 | 10.22 ▼37.29 |
Dashboard /wp-admin | 2,980 ▲49 | 6.17 ▲0.15 | 137.46 ▼4.07 | 104.95 ▼10.22 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.72 ▼0.00 | 69.77 ▲2.68 | 100.31 ▲11.89 |
Add New Post /wp-admin/post-new.php | 1,677 ▲1 | 18.86 ▲0.09 | 376.56 ▲5.68 | 97.46 ▼19.00 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.04 ▲0.03 | 144.25 ▲4.07 | 110.37 ▼9.92 |
Scorpion PPF /wp-admin/options-general.php?page=scorpion_ppf_admin | 1,670 | 2.10 | 54.61 | 81.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_scorpion_ppf_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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/scorpion-ppf-product-extension/inc/scorpion_ppf_common.php
- > /wp-content/plugins/scorpion-ppf-product-extension/inc/scorpion_ppf_product.php
- > /wp-content/plugins/scorpion-ppf-product-extension/inc/scorpion_ppf_admin.php
- > /wp-content/plugins/scorpion-ppf-product-extension/scorpion-ppf.php
- > /wp-content/plugins/scorpion-ppf-product-extension/inc/scorpion_ppf_widget.php
- > /wp-content/plugins/scorpion-ppf-product-extension/inc/scorpion_ppf_shortcodes.php
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== scorpion-ppf-product-extension ===
)
scorpion-ppf-product-extension/scorpion-ppf.php 92% from 13 tests
The entry point to "Scorpion PPF Product Extension" version 0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("scorpion-ppf-product-extension.php" instead of "scorpion-ppf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,551 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 43 | 323 | 373 | 1,519 |
Markdown | 2 | 216 | 0 | 425 |
PHP | 6 | 117 | 86 | 233 |
CSS | 3 | 19 | 29 | 190 |
HTML | 3 | 3 | 0 | 115 |
JSON | 2 | 0 | 0 | 69 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
colorbox/images/controls.png | 0.49KB | 0.57KB | 0.00% |