Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-black-ribbon/wp-black-ribbon.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; bbblackribbon has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼56.94ms] Passed 4 tests
A check of server-side resources used by WP Black Ribbon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.25 ▼37.07 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.87 ▼46.39 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.87 ▼46.35 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.35 ▼97.96 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.01 ▼30.20 |
WP Black Ribbon /wp-admin/options-general.php?page=bbblackribbon_menu_id | 2.10 | 6.02 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Black Ribbon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.63 ▼0.96 | 4.47 ▲2.56 | 40.65 ▼1.94 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.00 | 113.17 ▲3.17 | 39.58 ▼2.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.00 | 41.27 ▲5.24 | 36.49 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.25 ▲4.96 | 603.51 ▼48.22 | 56.62 ▼20.22 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.27 ▲0.02 | 96.00 ▼0.93 | 42.91 ▼1.60 |
WP Black Ribbon /wp-admin/options-general.php?page=bbblackribbon_menu_id | 803 | 2.22 | 25.53 | 28.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-black-ribbon/wp-black-ribbon.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; bbblackribbon has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=bbblackribbon_menu_id
- > Deprecated in wp-content/plugins/wp-black-ribbon/wp-black-ribbon.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; bbblackribbon has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bbblackribbon_menu_id
- > Notice in wp-content/plugins/wp-black-ribbon/admin_settings.php+34
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-black-ribbon/wp-black-ribbon.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-black-ribbon/admin_settings.php:11
- > 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
1 plugin tags: black ribbon
wp-black-ribbon/wp-black-ribbon.php Passed 13 tests
The main file in "WP Black Ribbon" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
This is a plugin that insert black ribbon to your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected175 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 17 | 175 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blackribbon-bottom-left.png | 2.09KB | 1.06KB | ▼ 49.14% |
images/blackribbon-top-left.png | 2.22KB | 1.07KB | ▼ 51.69% |
images/blackribbon-top-right.png | 2.11KB | 1.08KB | ▼ 49.08% |
images/blackribbon-bottom-right.png | 2.14KB | 1.05KB | ▼ 50.66% |