Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.20ms] Passed 4 tests
Analyzing server-side resources used by Responsive Attention Box
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.01 ▼1.87 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.52 ▼15.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.88 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.50 ▼7.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.35 ▼3.45 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- The plugin illegally modified 3 files (0.00KB) outside of "wp-content/plugins/responsive-attention-box/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/responsive-attention-box/assets/banner-772\303\227250.png"
- (new file) "wp-content/plugins/responsive-attention-box/banner-772\303\227250.png"
- (new file) "wp-content/plugins/responsive-attention-box/images/banner-772\303\227250.png"
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Responsive Attention Box: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.71 ▼0.54 | 5.41 ▲3.55 | 43.63 ▼1.56 |
Dashboard /wp-admin | 2,203 ▲15 | 5.78 ▼0.08 | 97.52 ▼12.98 | 40.64 ▼6.46 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.03 | 39.78 ▲0.53 | 35.87 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.38 ▲5.34 | 659.81 ▲13.45 | 51.43 ▼3.78 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.01 | 94.90 ▼7.27 | 41.48 ▼3.27 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-attention-box/alert-box.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Contributors: Plugin contributors field is missing
- Contributors: No tags were detected
responsive-attention-box/alert-box.php 85% from 13 tests
The primary PHP file in "Responsive Attention Box" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 235 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("responsive-attention-box.php" instead of "alert-box.php")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin314 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 27 | 5 | 282 |
PHP | 1 | 30 | 23 | 22 |
JavaScript | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 4 | |
▷ Named functions | 4 | 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
6 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/icons/gclose.png | 1.68KB | 0.75KB | ▼ 55.03% |
images/banner-772×250.png | 22.26KB | 8.94KB | ▼ 59.84% |
css/img/icons/bclose.png | 1.66KB | 0.75KB | ▼ 54.81% |
banner-772×250.png | 22.26KB | 8.94KB | ▼ 59.84% |
assets/banner-772×250.png | 22.26KB | 8.94KB | ▼ 59.84% |