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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.26ms] Passed 4 tests
An overview of server-side resources used by Black Ribbon by Attawit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 47.10 ▲0.85 |
Dashboard /wp-admin | 3.35 ▲0.01 | 49.53 ▼16.92 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 53.85 ▲4.55 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.15 ▼4.77 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 40.00 ▲3.80 |
Black Ribbon /wp-admin/options-general.php?page=black-ribbon-by-attawit/blackribbon.php | 3.24 | 32.42 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
blackribbon_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Black Ribbon by Attawit
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.71 ▼0.87 | 5.36 ▲3.64 | 44.60 ▲1.81 |
Dashboard /wp-admin | 2,223 ▲35 | 4.94 ▲0.05 | 109.55 ▼0.71 | 37.60 ▼5.02 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.19 ▲0.14 | 37.84 ▲0.58 | 35.93 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,528 ▼12 | 23.51 ▲4.94 | 677.75 ▲57.05 | 53.23 ▲1.01 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.36 ▲0.10 | 112.13 ▲9.88 | 48.77 ▲6.16 |
Black Ribbon /wp-admin/options-general.php?page=black-ribbon-by-attawit/blackribbon.php | 893 | 1.86 | 29.69 | 30.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/black-ribbon-by-attawit/blackribbon.php:347
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
black-ribbon-by-attawit/blackribbon.php 77% from 13 tests
The main file in "Black Ribbon by Attawit" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("black-ribbon-by-attawit.php" instead of "blackribbon.php")
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 detected1,481 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 41 | 48 | 1,237 |
PHP | 1 | 43 | 86 | 231 |
JavaScript | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 13 | |
▷ Named functions | 13 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/black_ribbon_bottom_left.png | 6.47KB | 3.47KB | ▼ 46.36% |
images/black_ribbon_top_left.png | 6.38KB | 3.57KB | ▼ 43.95% |
images/black_ribbon_bottom_right.png | 6.24KB | 3.50KB | ▼ 43.97% |
images/black_ribbon_top_right.png | 6.46KB | 3.50KB | ▼ 45.89% |