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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.39ms] Passed 4 tests
This is a short check of server-side resources used by Shortcode Box
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.53 ▼8.68 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.07 ▼3.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.56 ▼5.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 106.27 ▲8.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 45.45 ▲7.57 |
Shortcode Box /wp-admin/tools.php?page=shortcode-box-help | 3.20 | 33.27 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shortcode Box
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.35 ▲0.22 | 1.66 ▼0.32 | 48.88 ▲5.09 |
Dashboard /wp-admin | 2,201 ▲24 | 5.75 ▲0.08 | 90.77 ▼10.16 | 38.35 ▼0.47 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.02 ▼0.02 | 37.01 ▼7.40 | 35.53 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.95 ▼0.02 | 673.30 ▼7.02 | 51.02 ▼17.90 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.16 ▲0.01 | 113.40 ▼10.34 | 48.10 ▲0.09 |
Shortcode Box /wp-admin/tools.php?page=shortcode-box-help | 849 | 2.12 | 31.25 | 35.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/shortcode-box/shortcode-box.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-box/help.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: shortcode, box
shortcode-box/shortcode-box.php Passed 13 tests
"Shortcode Box" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Add Useful Boxes to your blog simply by shortcode.
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
There were no executable files found in this plugin403 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 10 | 0 | 197 |
PHP | 2 | 24 | 25 | 116 |
PO File | 2 | 28 | 28 | 90 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
10 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/stop.png | 3.21KB | 2.14KB | ▼ 33.09% |
img/codee.png | 2.39KB | 1.89KB | ▼ 20.63% |
img/warn.png | 52.24KB | 2.10KB | ▼ 95.97% |
img/question.png | 3.08KB | 2.29KB | ▼ 25.55% |
img/task.png | 3.86KB | 2.35KB | ▼ 39.16% |