Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼132.49ms] Passed 4 tests
Server-side resources used by Hello Bar WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.23 ▲9.60 |
Dashboard /wp-admin | 3.07 ▲0.02 | 52.19 ▲10.51 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.35 ▲3.29 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 100.45 ▼546.54 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.73 ▲3.70 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Hello Bar WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲180 | 16.26 ▲0.26 | 10.60 ▼0.11 | 44.58 ▼4.29 |
Dashboard /wp-admin | 3,023 ▲92 | 6.79 ▲0.57 | 148.19 ▼16.31 | 105.11 ▼4.49 |
Posts /wp-admin/edit.php | 2,792 ▲53 | 2.80 ▲0.07 | 67.25 ▼3.58 | 89.35 ▲4.97 |
Add New Post /wp-admin/post-new.php | 1,617 ▼66 | 21.08 ▲2.58 | 479.78 ▲92.12 | 119.26 ▲7.01 |
Media Library /wp-admin/upload.php | 1,857 ▲50 | 5.23 ▲0.24 | 153.09 ▼9.32 | 114.34 ▲5.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 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/hello-bar-wp/hello-bar-wp.php:149
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: header bar, opt-in bar, hello bar, top bar, conversion...
hello-bar-wp/hello-bar-wp.php Passed 13 tests
The entry point to "Hello Bar WP" version 1.0.2 is a PHP file that has certain tags in its header comment area
58 characters long description:
A simple plugin to show a Hello bar in the top of the page
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
There were no executable files found in this plugin222 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 25 | 158 |
CSS | 2 | 0 | 0 | 51 |
JavaScript | 2 | 3 | 11 | 13 |
PHP code Passed 2 tests
A short 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.05 |
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 | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin