Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.00ms] Passed 4 tests
A check of server-side resources used by Black Lives Matter Solidarity Banner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.97 ▼2.09 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.60 ▼2.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.13 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.72 ▼13.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.19 ▲1.66 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Black Lives Matter Solidarity Banner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲110 | 13.29 ▼1.10 | 1.93 ▲0.29 | 42.68 ▼2.37 |
Dashboard /wp-admin | 2,203 ▲21 | 5.82 ▼0.03 | 96.42 ▼3.24 | 41.64 ▼3.89 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.00 ▼0.15 | 33.47 ▼9.46 | 29.91 ▼8.30 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 23.20 ▲0.25 | 656.39 ▼55.13 | 55.12 ▼1.44 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▼0.03 | 103.88 ▲5.03 | 43.34 ▲1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/black-lives-matter-solidarity-banner/black-lives-matter-solidarity-banner.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/black-lives-matter-solidarity-banner/includes/blm-functions.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: blm, black, black lives matter, black lives, anti racism
black-lives-matter-solidarity-banner/black-lives-matter-solidarity-banner.php Passed 13 tests
The entry point to "Black Lives Matter Solidarity Banner" version 1.0.1 is a PHP file that has certain tags in its header comment area
139 characters long description:
A plugin to display a Black Lives Matter Banner with links to stay informed and to support an initiative for promoting equality and equity.
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
Good job! No executable or dangerous file extensions detected53 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 7 | 39 | 30 |
CSS | 1 | 3 | 0 | 23 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/screenshots/screenshot-1.png | 59.98KB | 14.48KB | ▼ 75.86% |