Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▲8.89ms] 75% from 4 tests
Analyzing server-side resources used by Suggestion Toolkit
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,039.39ms on /wp-admin/admin.php?page=suggestion-toolkit-extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 50.61 ▲13.77 |
Dashboard /wp-admin | 3.73 ▲0.42 | 67.19 ▲18.04 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 54.47 ▼0.77 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 98.68 ▲7.11 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 50.17 ▲15.46 |
Support /wp-admin/admin.php?page=suggestion-toolkit-support | 3.62 | 41.24 |
Extensions /wp-admin/admin.php?page=suggestion-toolkit-extensions | 3.70 | 1,039.39 |
Settings /wp-admin/admin.php?page=suggestion-toolkit | 3.62 | 41.65 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 16 new options
New WordPress options |
---|
widget_recent-posts |
suggestion_toolkit_more |
suggestion_toolkit_rewrite_enable |
widget_suggestiontoolkit_wp_widget |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
suggestion_toolkit_enabled_types |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Suggestion Toolkit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲125 | 13.29 ▼1.47 | 2.64 ▲0.14 | 44.87 ▼0.33 |
Dashboard /wp-admin | 2,244 ▲56 | 4.84 ▲0.02 | 101.56 ▼5.00 | 43.24 ▼6.35 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.05 ▲0.04 | 36.01 ▼3.23 | 32.70 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,678 ▲159 | 22.81 ▼0.45 | 640.64 ▼57.19 | 35.36 ▼30.83 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.24 ▲0.03 | 105.67 ▼7.87 | 43.44 ▲0.36 |
Support /wp-admin/admin.php?page=suggestion-toolkit-support | 883 | 2.05 | 26.64 | 27.93 |
Extensions /wp-admin/admin.php?page=suggestion-toolkit-extensions | 2,014 | 2.19 | 25.29 | 33.94 |
Settings /wp-admin/admin.php?page=suggestion-toolkit | 1,305 | 2.06 | 24.81 | 29.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 16 options in the database
- widget_recent-comments
- suggestion_toolkit_num_suggestions
- widget_theysaidso_widget
- suggestion_toolkit_cache_expiration
- widget_suggestiontoolkit_wp_widget
- suggestion_toolkit_rewrite_enable
- suggestion_toolkit_append_random
- widget_recent-posts
- suggestion_toolkit_title_words
- suggestion_toolkit_enabled_types
- ...
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 no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/suggestion-toolkit/widgets/elementor-suggestion-toolkit.php
- > /wp-content/plugins/suggestion-toolkit/widgets/wp-suggestion-toolkit.php
- > /wp-content/plugins/suggestion-toolkit/index.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: r_posts in wp-content/plugins/suggestion-toolkit/styles/tpl.post.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/suggestion-toolkit/styles/tpl.block-wrap.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/suggestion-toolkit/styles/tpl.post.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #5, #6, #7 in suggestion-toolkit/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
suggestion-toolkit/index.php 85% from 13 tests
Analyzing the main PHP file in "Suggestion Toolkit" version 5.0
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 307 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("suggestion-toolkit.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,036 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 331 | 184 | 1,687 |
SVG | 8 | 1 | 1 | 1,057 |
CSS | 2 | 168 | 63 | 653 |
JavaScript | 3 | 80 | 21 | 639 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 59.75 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 1 | 2.04% |
▷ Public methods | 45 | 91.84% |
▷ Protected methods | 3 | 6.12% |
▷ Private methods | 1 | 2.04% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.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
There were not PNG files found in your plugin