Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼139.23ms] Passed 4 tests
A check of server-side resources used by Black Ribbon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 33.03 ▼1.36 |
Dashboard /wp-admin | 3.11 ▲0.06 | 65.28 ▲11.39 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 55.32 ▲10.99 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 103.07 ▼570.23 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 37.03 ▲3.69 |
Black Ribbon /wp-admin/options-general.php?page=black-ribbon | 3.02 | 28.82 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Black Ribbon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,764 ▲168 | 15.89 ▲0.04 | 9.88 ▼0.77 | 46.12 ▼7.38 |
Dashboard /wp-admin | 2,975 ▲41 | 6.06 ▲0.06 | 145.85 ▼13.43 | 119.92 ▲6.21 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 93.73 ▲22.15 | 96.63 ▲6.20 |
Add New Post /wp-admin/post-new.php | 1,686 ▲105 | 18.86 ▼1.63 | 429.42 ▼0.64 | 109.40 ▼11.93 |
Media Library /wp-admin/upload.php | 1,812 ▲79 | 5.02 ▲0.00 | 190.18 ▲34.93 | 117.71 ▼3.50 |
Black Ribbon /wp-admin/options-general.php?page=black-ribbon | 1,098 | 2.09 | 59.75 | 87.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/black-ribbon/black-ribbon.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Donate link: Invalid URI found ("")
- Screenshots: Add images for these screenshots: #1 (Demo (screenshot-1.jpg)), #2 (Theme option (screenshot-2.jpg))
black-ribbon/black-ribbon.php 92% from 13 tests
The main file in "Black Ribbon" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected526 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 74 | 295 |
SVG | 4 | 0 | 0 | 188 |
CSS | 1 | 7 | 1 | 43 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 68.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 31.82% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin