Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼2.82ms] Passed 4 tests
Analyzing server-side resources used by QMean - WordPress Did You Mean and Search Suggestion Like Google
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 41.99 ▲4.78 |
Dashboard /wp-admin | 3.59 ▲0.29 | 48.64 ▲0.22 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 47.35 ▲0.07 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 89.62 ▼15.74 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.67 ▲4.19 |
Settings /wp-admin/admin.php?page=qmean-settings | 3.65 | 33.65 |
QMean /wp-admin/admin.php?page=qmean | 3.52 | 36.96 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_qmean_keyword |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
_qmean_keyword_table |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QMean - WordPress Did You Mean and Search Suggestion Like Google
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 13.80 ▼0.47 | 10.60 ▲8.99 | 43.15 ▲3.51 |
Dashboard /wp-admin | 2,235 ▲55 | 5.57 ▼0.09 | 84.81 ▼4.64 | 65.16 ▲20.71 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 1.99 ▲0.01 | 38.57 ▲0.08 | 35.79 ▲1.28 |
Add New Post /wp-admin/post-new.php | 6,406 ▲4,871 | 27.64 ▲9.17 | 923.49 ▲307.84 | 40.24 ▼23.38 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.14 ▼0.05 | 102.30 ▲1.26 | 78.53 ▲34.33 |
Settings /wp-admin/admin.php?page=qmean-settings | 2,052 | 2.57 | 49.10 | 27.02 |
QMean /wp-admin/admin.php?page=qmean | 984 | 1.70 | 26.01 | 31.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/qmean/qmean.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qmean/inc/class-ajax.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/qmean/templates/dashboard/dashboard.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/qmean/templates/dashboard/modals/user-eye.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/qmean/templates/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires php: Invalid plugin version format
qmean/qmean.php 92% from 13 tests
The primary PHP file in "QMean - WordPress Did You Mean and Search Suggestion Like Google" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 186 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,344 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 286 | 412 | 1,772 |
CSS | 4 | 15 | 2 | 592 |
JavaScript | 5 | 32 | 6 | 473 |
PO File | 1 | 429 | 789 | 426 |
SVG | 2 | 0 | 2 | 68 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 3 | 5.36% |
▷ Public methods | 44 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 21.43% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin