Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.57ms] Passed 4 tests
A check of server-side resources used by Clear comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.22 ▲3.02 |
Dashboard /wp-admin | 3.36 ▲0.02 | 47.73 ▼8.49 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 40.57 ▼7.34 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 78.16 ▼18.01 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.51 ▼0.44 |
Clear comments /wp-admin/options-general.php?page=clear_comments_options | 3.23 | 29.05 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_clear_comments_log |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Clear comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.35 ▼0.29 | 1.99 ▲0.36 | 44.07 ▲3.33 |
Dashboard /wp-admin | 2,201 ▲24 | 5.61 ▼0.03 | 82.04 ▼7.28 | 37.56 ▼1.33 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.01 ▼0.01 | 32.93 ▼2.55 | 34.08 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 22.99 ▼0.18 | 662.90 ▲3.09 | 53.27 ▲1.47 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.21 ▲0.03 | 97.14 ▼6.66 | 44.11 ▼2.31 |
Clear comments /wp-admin/options-general.php?page=clear_comments_options | 781 | 2.02 | 23.08 | 32.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_clear_comments_log
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=clear_comments_options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EPV_ClearComments_Admin::plugin_overview() should not be called statically
- > GET request to /wp-admin/options-general.php?page=clear_comments_options
- > Deprecated in wp-content/plugins/clear-comments/includes/overview.php+6
Non-static method EPV_ClearComments::get_clear_count() should not be called statically
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/clear-comments/includes/overview.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/clear-comments/includes/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/clear-comments/includes/test.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: comments
clear-comments/clear-comments.php Passed 13 tests
The main PHP file in "Clear comments" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
This plugin replaces words from the stop list with asterisks ****
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected502 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 105 | 20 | 423 |
PO File | 1 | 22 | 24 | 61 |
CSS | 1 | 3 | 4 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 19 | 86.36% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin