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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.73ms] Passed 4 tests
This is a short check of server-side resources used by Clean unused shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 47.70 ▲10.38 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.70 ▼2.74 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.04 ▼2.95 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.05 ▼9.80 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.56 ▲4.59 |
Clean unused shortcodes /wp-admin/tools.php?page=clean-unused-shortcodes | 3.26 | 30.42 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Clean unused shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲126 | 13.69 ▼1.04 | 7.92 ▲6.18 | 40.37 ▲1.71 |
Dashboard /wp-admin | 2,210 ▲33 | 4.93 ▼0.75 | 90.29 ▲1.34 | 36.31 ▼3.75 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.26 ▲0.30 | 35.51 ▼1.29 | 31.63 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.13 ▲0.09 | 618.95 ▼25.16 | 56.62 ▼0.78 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.38 ▲0.19 | 99.06 ▼5.72 | 41.47 ▼1.65 |
Clean unused shortcodes /wp-admin/tools.php?page=clean-unused-shortcodes | 907 | 2.14 | 34.43 | 25.63 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/clean-unused-shortcodes/public/partials/clean-unused-shortcodes-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/clean-unused-shortcodes/admin/partials/clean-unused-shortcodes-admin-display.php:16
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: shortcode, clean
clean-unused-shortcodes/clean-unused-shortcodes.php Passed 13 tests
The entry point to "Clean unused shortcodes" version 1.0.4 is a PHP file that has certain tags in its header comment area
49 characters long description:
Remove unused shortcodes from your posts content.
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 plugin450 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 114 | 552 | 271 |
JavaScript | 62 | 62 | 87 | 110 |
CSS | 3 | 0 | 4 | 69 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 22.22% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected