Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼137.07ms] Passed 4 tests
An overview of server-side resources used by WP Hello Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 27.15 ▲5.55 |
Dashboard /wp-admin | 3.09 ▲0.03 | 50.04 ▲5.87 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 43.59 ▲3.62 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 89.27 ▼563.31 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 34.64 ▲8.54 |
HelloBar Settings /wp-admin/options-general.php?page=hb-settings | 3.00 | 27.42 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Hello Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,687 ▲91 | 15.82 ▲0.29 | 9.14 ▲1.76 | 48.73 ▼3.76 |
Dashboard /wp-admin | 2,978 ▲41 | 5.85 ▼0.28 | 141.88 ▼11.25 | 110.13 ▼4.60 |
Posts /wp-admin/edit.php | 2,747 ▲8 | 2.69 ▲0.01 | 70.49 ▲0.93 | 91.48 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,506 ▼177 | 18.60 ▼0.05 | 363.44 ▲0.00 | 106.88 ▼7.23 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.00 ▼0.02 | 149.14 ▲5.50 | 124.11 ▲3.60 |
HelloBar Settings /wp-admin/options-general.php?page=hb-settings | 1,159 | 2.18 | 56.25 | 81.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hello-bar/wp-hello-bar.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
3 plugin tags: hello bar, notification bar, hellobar
wp-hello-bar/wp-hello-bar.php Passed 13 tests
The principal PHP file in "WP Hello Bar" v. 1.02 is loaded by WordPress automatically on each request
42 characters long description:
Insert the HelloBar on your WordPress site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected113 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 82 | 113 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.56 |
▷ 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 | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/hellobar-icon.png | 1.36KB | 1.61KB | 0.00% |