Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.16ms] Passed 4 tests
An overview of server-side resources used by Shortcode Toggle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.49 ▼0.53 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.63 ▼19.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.54 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.55 ▼15.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.35 ▼4.62 |
Shortcode Toggle /wp-admin/tools.php?page=shortcode-toggle-help | 3.20 | 30.84 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shortcode Toggle
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.98 ▼0.77 | 9.01 ▲6.95 | 40.82 ▲2.42 |
Dashboard /wp-admin | 2,229 ▲26 | 5.87 ▼0.02 | 100.96 ▼11.51 | 38.78 ▼6.01 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.02 ▲0.03 | 41.26 ▲4.70 | 34.27 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.07 ▼0.11 | 676.89 ▲23.93 | 66.16 ▲15.01 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.25 ▲0.05 | 97.24 ▼21.14 | 46.43 ▼2.82 |
Shortcode Toggle /wp-admin/tools.php?page=shortcode-toggle-help | 800 | 2.07 | 24.96 | 30.16 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/shortcode-toggle/shortcode-toggle.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-toggle/help.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
3 plugin tags: toggle, shortcode, menu
shortcode-toggle/shortcode-toggle.php Passed 13 tests
The primary PHP file in "Shortcode Toggle" version 1.0.9 is used by WordPress to initiate all plugin functionality
56 characters long description:
Add Useful Toggle Menu to your blog simply by shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin161 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 14 | 14 | 62 |
PHP | 2 | 16 | 25 | 60 |
CSS | 2 | 0 | 0 | 31 |
JavaScript | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/minus.png | 0.47KB | 0.36KB | ▼ 23.71% |
img/plus.png | 0.79KB | 0.64KB | ▼ 18.92% |