Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.92ms] Passed 4 tests
An overview of server-side resources used by Re-Abolish Slavery Ribbon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 46.30 ▲5.18 |
Dashboard /wp-admin | 3.35 ▲0.04 | 50.97 ▲0.07 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.85 ▼8.49 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.65 ▲0.25 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 36.89 ▲0.51 |
Re-Abolish Slavery Ribbon /wp-admin/options-general.php?page=rasr_settings | 3.25 | 34.87 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Re-Abolish Slavery Ribbon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲127 | 13.52 ▼0.88 | 8.78 ▲7.04 | 46.22 ▲6.26 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▼0.04 | 82.96 ▼7.95 | 39.52 ▲1.74 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.11 ▲0.15 | 36.34 ▼5.22 | 31.21 ▼8.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.24 ▲0.28 | 616.54 ▼84.42 | 55.00 ▼3.10 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.17 ▲0.04 | 96.90 ▼13.37 | 41.09 ▼6.35 |
Re-Abolish Slavery Ribbon /wp-admin/options-general.php?page=rasr_settings | 872 | 2.03 | 27.05 | 28.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% 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 items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/re-abolish-slavery-ribbon/classes/core.php
- > /wp-content/plugins/re-abolish-slavery-ribbon/re-abolish-slavery-ribbon.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/re-abolish-slavery-ribbon/views/ribbon-markup.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/re-abolish-slavery-ribbon/views/settings.php:6
- > PHP Notice
Undefined variable: field in wp-content/plugins/re-abolish-slavery-ribbon/views/setting-fields.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/re-abolish-slavery-ribbon/views/setting-fields.php on line 10
- > PHP Warning
Use of undefined constant RASR_NAME - assumed 'RASR_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/re-abolish-slavery-ribbon/views/settings.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/re-abolish-slavery-ribbon/views/setting-fields.php on line 20
- > PHP Notice
Undefined variable: field in wp-content/plugins/re-abolish-slavery-ribbon/views/setting-fields.php on line 20
- > PHP Notice
Undefined variable: field in wp-content/plugins/re-abolish-slavery-ribbon/views/setting-fields.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/re-abolish-slavery-ribbon/views/setting-fields.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Add a description for screenshot #2 in re-abolish-slavery-ribbon/assets to your readme.txt
re-abolish-slavery-ribbon/re-abolish-slavery-ribbon.php Passed 13 tests
This is the main PHP file of "Re-Abolish Slavery Ribbon" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
120 characters long description:
Adds a "re-abolish slavery" ribbon to the upper right-hand corner of your site, which links to the Not For Sale campaign
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected223 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 43 | 102 | 166 |
CSS | 1 | 9 | 6 | 46 |
JavaScript | 1 | 2 | 7 | 11 |
PHP code Passed 2 tests
This is a short overview 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.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ribbon-top-left.png | 30.21KB | 11.91KB | ▼ 60.59% |
images/add-to-website.png | 1.79KB | 1.76KB | ▼ 1.80% |
images/ribbon-top-right.png | 32.73KB | 13.37KB | ▼ 59.15% |