Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.31MB] [CPU: ▼49.52ms] Passed 4 tests
This is a short check of server-side resources used by Mihdan: Ajax Edit Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.66 ▼0.80 | 8.74 ▼28.48 |
Dashboard /wp-admin | 2.72 ▼0.63 | 11.08 ▼54.04 |
Posts /wp-admin/edit.php | 2.72 ▼0.63 | 12.25 ▼35.06 |
Add New Post /wp-admin/post-new.php | 2.72 ▼3.17 | 13.26 ▼80.50 |
Media Library /wp-admin/upload.php | 2.72 ▼0.51 | 12.43 ▼19.18 |
Permissions /wp-admin/admin.php?page=aecpermissions | 2.72 | 10.47 |
Cleanup /wp-admin/admin.php?page=aeccleanup | 2.72 | 11.20 |
Appearance /wp-admin/admin.php?page=aecappearance | 2.72 | 12.01 |
Behavior /wp-admin/admin.php?page=wpaec | 2.72 | 13.30 |
Server storage [IO: ▲2.65MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 159 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
WPAjaxEditComments20 |
db_upgraded |
widget_theysaidso_widget |
WPAjaxEditAuthoruser_options |
Browser metrics Passed 4 tests
Mihdan: Ajax Edit Comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲270 | 13.49 ▼0.83 | 1.63 ▼0.06 | 32.84 ▼9.64 |
Dashboard /wp-admin | 2,358 ▲173 | 4.98 ▼0.91 | 103.18 ▲0.62 | 47.09 ▲7.26 |
Posts /wp-admin/edit.php | 2,133 ▲47 | 2.05 ▲0.05 | 39.28 ▲3.20 | 35.68 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,571 ▲43 | 18.13 ▼0.12 | 620.47 ▼9.05 | 55.67 ▼4.75 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.25 ▲0.06 | 97.13 ▼12.09 | 40.91 ▼6.66 |
Permissions /wp-admin/admin.php?page=aecpermissions | 977 | 1.86 | 26.67 | 24.43 |
Cleanup /wp-admin/admin.php?page=aeccleanup | 872 | 1.86 | 25.51 | 26.18 |
Appearance /wp-admin/admin.php?page=aecappearance | 1,764 | 2.97 | 77.48 | 47.78 |
Behavior /wp-admin/admin.php?page=wpaec | 1,537 | 1.87 | 26.87 | 28.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-ajax-edit-comments/lib/class.css.php+113
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaec
- > Deprecated in wp-content/plugins/wp-ajax-edit-comments/lib/class.css.php+113
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaec
- > Deprecated in wp-content/plugins/wp-ajax-edit-comments/lib/class.utility.php+123
Array and string offset access syntax with curly braces is deprecated
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
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-ajax-edit-comments/views/move-comment.php
- > /wp-content/plugins/wp-ajax-edit-comments/views/comment-popup.php
- > /wp-content/plugins/wp-ajax-edit-comments/views/blacklist-comment.php
- > /wp-content/plugins/wp-ajax-edit-comments/views/comment-editor.php
- > /wp-content/plugins/wp-ajax-edit-comments/views/email.php
- > /wp-content/plugins/wp-ajax-edit-comments/views/request-deletion.php
- 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 125
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/appearance.php:3
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 177
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 161
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 113
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 133
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 129
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 165
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 173
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-ajax-edit-comments/views/admin-panel/admin-panel.php on line 153
- > PHP Warning
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-ajax-edit-comments/wp-ajax-edit-comments.php 85% from 13 tests
The main PHP file in "Mihdan: Ajax Edit Comments" ver. 6.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: Please don't use more than 140 characters for the plugin description (currently 182 characters long)
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin18,231 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 15 | 4,611 | 8,082 | 9,881 |
PHP | 24 | 513 | 548 | 5,161 |
JavaScript | 23 | 340 | 500 | 2,927 |
CSS | 6 | 39 | 31 | 262 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 125)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 61.73 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 5.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 125.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 117 | 81.25% |
▷ Public methods | 141 | 97.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.08% |
Functions | 14 | |
▷ Named functions | 14 | 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
PNG files should be compressed to save space and minimize bandwidth usage
31 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/facebook.png | 0.73KB | 0.98KB | 0.00% |
images/themes/pictos-dark-small/sprite.png | 2.22KB | 2.47KB | 0.00% |
images/feed.png | 0.67KB | 0.90KB | 0.00% |
css/atd/images/editing.png | 1.21KB | 1.17KB | ▼ 3.31% |
images/pluginbuddy.png | 3.28KB | 0.71KB | ▼ 78.24% |