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.91MB] [CPU: ▼172.47ms] Passed 4 tests
Analyzing server-side resources used by Notice Boxes with Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.25 ▲11.38 |
Dashboard /wp-admin | 2.74 ▼0.32 | 19.61 ▼21.67 |
Posts /wp-admin/edit.php | 2.74 ▼0.37 | 20.65 ▼22.47 |
Add New Post /wp-admin/post-new.php | 2.74 ▼2.69 | 21.08 ▼625.20 |
Media Library /wp-admin/upload.php | 2.74 ▼0.27 | 20.25 ▼20.52 |
Notice Boxes /wp-admin/options-general.php?page=noticeboxes | 2.74 | 22.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Notice Boxes with Shortcodes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲200 | 16.31 ▲0.86 | 14.15 ▲5.17 | 48.72 ▲1.39 |
Dashboard /wp-admin | 2,972 ▲38 | 6.14 ▲0.03 | 133.21 ▼11.36 | 111.60 ▼4.01 |
Posts /wp-admin/edit.php | 2,741 ▲5 | 2.71 ▼0.01 | 60.09 ▲1.32 | 91.21 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,501 ▼2,135 | 18.82 ▲3.82 | 364.59 ▼58.14 | 109.46 ▲2.07 |
Media Library /wp-admin/upload.php | 1,818 ▲11 | 5.05 ▲0.03 | 150.97 ▲0.61 | 116.51 ▼9.73 |
Notice Boxes /wp-admin/options-general.php?page=noticeboxes | 1,219 | 2.05 | 51.01 | 70.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=noticeboxes
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/notice-boxes-with-shortcodes/nbox_adminpage.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notice-boxes-with-shortcodes/notice-boxes.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 on the user side
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
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== notice-boxes-with-shortcodes ===
)
notice-boxes-with-shortcodes/notice-boxes.php 92% from 13 tests
"Notice Boxes with Shortcodes" version 3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("notice-boxes-with-shortcodes.php" instead of "notice-boxes.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
No dangerous file extensions were detected32 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1 | 12 | 23 |
JavaScript | 1 | 1 | 0 | 8 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ss2.png | 22.67KB | 5.99KB | ▼ 73.57% |
images/ss3.png | 11.15KB | 2.84KB | ▼ 74.55% |
images/ss4.png | 10.05KB | 2.32KB | ▼ 76.97% |
images/ss1.png | 8.26KB | 1.54KB | ▼ 81.31% |