Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲1.42ms] Passed 4 tests
A check of server-side resources used by Notibar - Notification Bar for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 46.76 ▲1.31 |
Dashboard /wp-admin | 3.35 ▲0.05 | 61.73 ▲3.09 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.79 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.39 ▲0.49 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.19 ▲5.34 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_recent-posts |
njt_nofi_text_mobile_wpml_translate |
njt_nofi_text_wpml_translate |
theysaidso_admin_options |
njt_nofi_lb_url_wpml_translate |
njt_nofi_first_time_active |
can_compress_scripts |
db_upgraded |
njt_nofi_review |
njt_nofi_lb_url_mobile_wpml_translate |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Notibar - Notification Bar for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,144 ▲358 | 13.54 ▼0.72 | 18.91 ▲16.18 | 25.71 ▼21.97 |
Dashboard /wp-admin | 2,261 ▲84 | 5.55 ▼0.12 | 86.50 ▼8.10 | 67.41 ▲24.20 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.02 | 33.15 ▼4.02 | 35.65 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.32 ▲0.12 | 686.03 ▼23.41 | 60.52 ▲5.93 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.22 ▼0.02 | 111.24 ▼0.38 | 50.40 ▲6.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 18 options in the database
- widget_recent-comments
- njt_nofi_text_wpml_translate
- njt_popup_filebird_cross
- db_upgraded
- njt_nofi_version
- widget_recent-posts
- njt_nofi_lb_text_wpml_translate
- njt_nofi_text_mobile_wpml_translate
- njt_nofi_lb_text_mobile_wpml_translate
- njt_nofi_lb_url_mobile_wpml_translate
- ...
Smoke tests Passed 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 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
The SRP test was a success
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
notibar/njt-notification-bar.php 92% from 13 tests
The entry point to "Notibar - Notification Bar for WordPress" version 2.1.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("notibar.php" instead of "njt-notification-bar.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected5,285 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 191 | 84 | 2,390 |
PHP | 22 | 312 | 85 | 2,049 |
CSS | 3 | 72 | 1 | 698 |
PO File | 1 | 54 | 66 | 138 |
XML | 1 | 0 | 0 | 10 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 188)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 20.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 7.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 188.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 12 | 18.75% |
▷ Public methods | 59 | 92.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.81% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/FB_Wireframe.png | 10.56KB | 4.88KB | ▼ 53.83% |