Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.96ms] Passed 4 tests
Analyzing server-side resources used by Notification Box Pro
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.01 ▲1.75 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.43 ▼3.72 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.58 ▼4.80 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.24 ▼9.08 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.65 ▲3.88 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
ztb_source |
ztb_domainid |
ztb_status_message |
ztb_status_disconnect |
ztb_email |
ztb_id |
theysaidso_admin_options |
ztb_access_key |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Notification Box Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.63 ▼1.04 | 5.00 ▲3.21 | 43.72 ▼2.79 |
Dashboard /wp-admin | 2,228 ▲40 | 5.88 ▲0.03 | 100.54 ▼7.56 | 77.08 ▲35.15 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 2.03 ▲0.04 | 41.25 ▼0.52 | 34.38 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,694 ▲157 | 24.89 ▲1.78 | 706.70 ▲89.05 | 50.66 ▼4.80 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.27 ▼0.00 | 114.65 ▲15.78 | 45.45 ▲0.74 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 14 options in the database
- ztb_email
- widget_theysaidso_widget
- access_key
- db_upgraded
- ztb_source
- theysaidso_admin_options
- ztb_status_disconnect
- ztb_id
- ztb_access_key
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-box-pro/notification-box.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
notification-box-pro/notification-box.php 92% from 13 tests
The principal PHP file in "Notification Box Pro" v. 1.1.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("notification-box-pro.php" instead of "notification-box.php")
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
Everything looks great! No dangerous files found in this plugin501 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 4 | 273 |
PHP | 1 | 19 | 15 | 188 |
JavaScript | 1 | 4 | 0 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bg_body.png | 22.84KB | 9.83KB | ▼ 56.98% |
assets/images/logo-zotabox.png | 5.45KB | 2.43KB | ▼ 55.35% |
assets/images/check.png | 2.96KB | 0.37KB | ▼ 87.47% |
zotabox.png | 3.19KB | 0.44KB | ▼ 86.31% |