Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.87ms] Passed 4 tests
An overview of server-side resources used by Shortcode Scrubber
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 35.81 ▲0.51 |
Dashboard /wp-admin | 3.48 ▲0.17 | 43.79 ▼2.07 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 45.37 ▼1.37 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 79.61 ▼11.86 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.40 ▼0.16 |
Find Post Usages /wp-admin/admin.php?page=shortcode-scrubber-post-usages | 3.48 | 32.82 |
Shortcodes /wp-admin/admin.php?page=shortcode-scrubber | 3.46 | 38.79 |
Find Widget Usages /wp-admin/admin.php?page=shortcode-scrubber-widget-usages | 3.44 | 32.44 |
Manage Filters /wp-admin/admin.php?page=shortcode-scrubber-manage | 3.38 | 31.90 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Shortcode Scrubber
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.39 ▲0.04 | 1.65 ▲0.04 | 40.41 ▲1.80 |
Dashboard /wp-admin | 2,233 ▲53 | 5.61 ▼0.04 | 83.45 ▼2.97 | 39.08 ▼0.91 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 1.95 ▼0.09 | 36.71 ▼0.08 | 34.94 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,554 ▲20 | 23.09 ▲4.86 | 651.42 ▲1.21 | 54.90 ▼8.81 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.24 ▲0.03 | 101.25 ▲1.79 | 46.58 ▲1.45 |
Find Post Usages /wp-admin/admin.php?page=shortcode-scrubber-post-usages | 1,125 | 2.04 | 24.76 | 29.28 |
Shortcodes /wp-admin/admin.php?page=shortcode-scrubber | 1,251 | 2.00 | 22.75 | 28.37 |
Find Widget Usages /wp-admin/admin.php?page=shortcode-scrubber-widget-usages | 1,186 | 2.01 | 29.41 | 29.74 |
Manage Filters /wp-admin/admin.php?page=shortcode-scrubber-manage | 890 | 2.03 | 24.89 | 22.99 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortcodeScrubber\\get_actionable_shortcode_filters() in wp-content/plugins/shortcode-scrubber/templates/form-manage-shortcode.php:15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shortcode-scrubber/autoload/ShortcodeFilterListTable.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortcodeScrubber\\esc_html_e() in wp-content/plugins/shortcode-scrubber/templates/shortcode-post-usages.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortcodeScrubber\\esc_html_e() in wp-content/plugins/shortcode-scrubber/templates/shortcode-manage-filters.php:17
- > PHP Warning
require(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/shortcode-scrubber/autoload/ShortcodeFilterListTable.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortcodeScrubber\\esc_html_e() in wp-content/plugins/shortcode-scrubber/templates/shortcode-widget-usages.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortcodeScrubber\\esc_html_e() in wp-content/plugins/shortcode-scrubber/templates/shortcode-filters.php:12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shortcode-scrubber/autoload/ShortcodeWidgetListTable.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-scrubber/includes/hooks.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortcodeScrubber\\esc_attr() in wp-content/plugins/shortcode-scrubber/templates/form-select-shortcode.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: shortcode
shortcode-scrubber/shortcode-scrubber.php 85% from 13 tests
This is the main PHP file of "Shortcode Scrubber" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,182 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 589 | 1,095 | 2,182 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 10 | 8.70% |
▷ Public methods | 92 | 80.00% |
▷ Protected methods | 22 | 19.13% |
▷ Private methods | 1 | 0.87% |
Functions | 48 | |
▷ Named functions | 24 | 50.00% |
▷ Anonymous functions | 24 | 50.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.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
PNG images were not found in this plugin