Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼144.34ms] Passed 4 tests
Server-side resources used by Hello Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 36.39 ▲13.71 |
Dashboard /wp-admin | 3.09 ▲0.04 | 46.50 ▲6.49 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 43.61 ▼9.02 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 95.15 ▼577.40 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 36.87 ▲2.59 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Hello Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,727 ▲131 | 15.55 ▼0.34 | 12.11 ▲1.17 | 51.35 ▲0.08 |
Dashboard /wp-admin | 2,979 ▲48 | 5.88 ▼0.06 | 153.94 ▲2.02 | 134.19 ▲14.60 |
Posts /wp-admin/edit.php | 2,773 ▲37 | 2.69 ▼0.00 | 70.53 ▲0.84 | 104.97 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.60 ▼0.08 | 413.64 ▲17.61 | 117.27 ▼7.58 |
Media Library /wp-admin/upload.php | 1,764 ▼43 | 4.99 ▼0.01 | 145.71 ▼13.05 | 154.92 ▲26.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller 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 items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/hellobar/views/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hellobar/hellobar.php:211
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (The Hello Bar for WordPress interface. A dead simple place to put your HelloBar code.)
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
hellobar/hellobar.php Passed 13 tests
"Hello Bar" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
The Original Popup Software (Top Bars, Exit Intents, Sliders, & More to Grow Your Email List!)
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 detected253 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 0 | 29 | 233 |
SVG | 1 | 0 | 1 | 16 |
CSS | 1 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
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
5 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/q.png | 0.94KB | 0.74KB | ▼ 21.46% |
images/icon2.png | 0.64KB | 0.73KB | 0.00% |
images/icon.png | 1.69KB | 0.94KB | ▼ 44.66% |
images/logo.png | 4.99KB | 2.53KB | ▼ 49.33% |
images/demo.png | 110.23KB | 37.00KB | ▼ 66.43% |