Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.58MB] [CPU: ▼2.14ms] Passed 4 tests
Server-side resources used by WPFront Notification Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 43.73 ▲3.14 |
Dashboard /wp-admin | 3.92 ▲0.61 | 50.01 ▲1.78 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 47.52 ▼3.59 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 82.24 ▼9.88 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 36.96 ▲3.97 |
Notification Bar /wp-admin/options-general.php?page=wpfront-notification-bar | 3.93 | 45.03 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WPFront Notification Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.72 ▲0.35 | 1.76 ▲0.17 | 44.27 ▲4.41 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.00 | 97.16 ▲8.02 | 41.27 ▼0.93 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▲0.03 | 33.84 ▼15.27 | 35.66 ▼7.74 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.99 ▼0.71 | 684.40 ▲11.13 | 51.92 ▼4.82 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.05 | 96.23 ▼4.42 | 40.14 ▼10.11 |
Notification Bar /wp-admin/options-general.php?page=wpfront-notification-bar | 3,464 | 5.94 | 126.42 | 58.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare 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
wpfront-notification-bar/wpfront-notification-bar.php Passed 13 tests
The main PHP script in "WPFront Notification Bar" version 3.3.2 is automatically included on every request by WordPress
72 characters long description:
Easily lets you create a bar on top or bottom to display a notification.
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
There were no executable files found in this plugin4,199 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 464 | 862 | 2,640 |
JavaScript | 10 | 94 | 55 | 1,032 |
CSS | 11 | 66 | 5 | 527 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 49.83 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 2 | 1.56% |
▷ Public methods | 68 | 53.12% |
▷ Protected methods | 57 | 44.53% |
▷ Private methods | 3 | 2.34% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.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
38 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jquery-plugins/jquery-ui/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
jquery-plugins/colorpicker/images/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
jquery-plugins/colorpicker/images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |
jquery-plugins/colorpicker/images/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
jquery-plugins/jquery-ui/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |