Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.30ms] Passed 4 tests
This is a short check of server-side resources used by Unused Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.11 ▼5.13 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.69 ▼4.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.28 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.70 ▼12.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.94 ▲0.60 |
Unused Shortcodes /wp-admin/options-general.php?page=unusedshortcodes | 3.25 | 35.74 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
find_shortcode |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Unused Shortcodes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.08 | 1.74 ▼0.23 | 40.29 ▼3.58 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.04 | 89.22 ▼1.75 | 40.54 ▲1.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.01 | 35.28 ▼4.85 | 34.29 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.22 ▼5.38 | 620.05 ▼10.90 | 72.99 ▲17.57 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.27 ▲0.09 | 103.54 ▲1.12 | 47.19 ▲5.04 |
Unused Shortcodes /wp-admin/options-general.php?page=unusedshortcodes | 1,005 | 3.36 | 73.94 | 39.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× 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/unused-shortcodes/unused-shortcodes.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/unused-shortcodes/options.php:3
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: shortcode, code, admin, plugin, shortcodes...
unused-shortcodes/unused-shortcodes.php Passed 13 tests
"Unused Shortcodes" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
A plugin to display shortcodes that are not currently being used on a WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin72 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 29 | 72 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin