Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.83ms] Passed 4 tests
A check of server-side resources used by Global Notification Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.76 ▼4.29 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.22 ▼3.85 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.65 ▼0.08 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.37 ▼10.72 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.75 ▼0.47 |
Global Notification /wp-admin/options-general.php?page=global-notification | 3.26 | 37.09 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Global Notification Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.28 ▼1.09 | 1.66 ▼0.10 | 46.56 ▼0.59 |
Dashboard /wp-admin | 2,210 ▲31 | 4.86 ▼0.11 | 106.46 ▼8.39 | 39.46 ▼10.25 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 36.13 ▲0.91 | 34.95 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.25 ▲0.62 | 589.69 ▼125.70 | 56.71 ▼1.82 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▲0.01 | 96.04 ▼2.08 | 39.62 ▼4.07 |
Global Notification /wp-admin/options-general.php?page=global-notification | 1,906 | 3.80 | 81.25 | 43.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/global-notification-bar/global-notification.php+838
Undefined index: deactivation_delete
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #1, #2 in global-notification-bar/assets to your readme.txt
global-notification-bar/global-notification.php 85% from 13 tests
The primary PHP file in "Global Notification Bar" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("global-notification-bar.php" instead of "global-notification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin938 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 136 | 184 | 694 |
CSS | 4 | 12 | 0 | 192 |
JavaScript | 4 | 7 | 5 | 52 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 135.00 |
▷ Minimum class complexity | 135.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.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 | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 33 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.94% |
Functions | 1 | |
▷ Named functions | 1 | 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
20 PNG files occupy 0.39MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/halloween.png | 14.33KB | 5.75KB | ▼ 59.90% |
img/acrylic.png | 15.88KB | 5.82KB | ▼ 63.38% |
img/cart.png | 12.32KB | 5.96KB | ▼ 51.65% |
img/party.png | 25.11KB | 7.90KB | ▼ 68.54% |
img/candybar.png | 42.21KB | 8.59KB | ▼ 79.64% |