Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.93ms] Passed 4 tests
A check of server-side resources used by WP Stop UK Communications Data Bill Ribbon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.06 ▼0.21 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.74 ▲6.64 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.77 ▼0.71 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.52 ▼3.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.61 ▲0.56 |
Server storage [IO: ▲0.27MB] [DB: ▼0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Stop UK Communications Data Bill Ribbon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.32 ▲0.32 | 1.84 ▼0.07 | 43.88 ▲3.01 |
Dashboard /wp-admin | 2,195 ▲24 | 5.64 ▲0.04 | 86.77 ▼1.82 | 42.31 ▼2.47 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.03 ▲0.03 | 33.60 ▼2.46 | 35.84 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.31 ▲5.19 | 644.96 ▲11.24 | 58.26 ▲5.38 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.21 ▼0.11 | 97.00 ▼18.38 | 42.23 ▼5.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-stop-cdb/wp-stop-cdb.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Sample Screen Shot) image missing
- Tags: There are too many tags (13 tag instead of maximum 10)
wp-stop-cdb/wp-stop-cdb.php Passed 13 tests
The primary PHP file in "WP Stop UK Communications Data Bill Ribbon" version 1.0 is used by WordPress to initiate all plugin functionality
119 characters long description:
Add a ribbon to the top right corner of your WordPress site to protest against the UK's Draft Communications Data bill.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin76 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 37 | 68 |
CSS | 1 | 1 | 1 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ribbon.png | 24.55KB | 7.36KB | ▼ 70.01% |
images/template-ribbon.png | 5.68KB | 2.79KB | ▼ 50.83% |