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.00MB] [CPU: ▼5.80ms] Passed 4 tests
A check of server-side resources used by Shortcode Cleanup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.16 ▼5.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.25 ▼6.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.56 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.21 ▼6.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.36 ▼5.22 |
Shortcode Cleanup /wp-admin/tools.php?page=shortcode_cleanup_admin_page | 3.20 | 30.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Shortcode Cleanup: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.20 ▼0.29 | 2.24 ▲0.41 | 44.42 ▼0.19 |
Dashboard /wp-admin | 2,204 ▲24 | 5.63 ▼0.03 | 95.60 ▲3.04 | 45.74 ▲0.34 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.98 ▼0.01 | 35.88 ▼2.73 | 43.52 ▲6.66 |
Add New Post /wp-admin/post-new.php | 1,364 ▼164 | 16.61 ▼6.76 | 574.55 ▼44.73 | 32.48 ▼17.10 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▲0.04 | 98.06 ▼16.34 | 39.30 ▼8.07 |
Shortcode Cleanup /wp-admin/tools.php?page=shortcode_cleanup_admin_page | 1,525 | 1.66 | 29.78 | 48.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/shortcode-cleanup/classes/scShortcodeCleanup.class.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-cleanup/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-cleanup/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== shortcode-cleanup ===
)
shortcode-cleanup/shortcode_cleanup.php 92% from 13 tests
Analyzing the main PHP file in "Shortcode Cleanup" version 0.5
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shortcode-cleanup.php" instead of "shortcode_cleanup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected388 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 22 | 388 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 6.17 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 16.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 83.33% |
Functions | 2 | |
▷ Named functions | 2 | 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
No PNG images were found in this plugin