Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▲1.02ms] Passed 4 tests
Analyzing server-side resources used by Short Comment Filter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.97 ▲7.21 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.91 ▼3.51 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 47.21 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 94.58 ▲4.49 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.73 ▲3.56 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Short Comment Filter: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.61 ▼0.94 | 1.90 ▲0.05 | 39.92 ▼1.42 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.03 | 107.03 ▲7.07 | 39.92 ▼3.64 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 39.79 ▼0.25 | 35.18 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.01 ▼0.22 | 621.00 ▲16.33 | 52.48 ▲2.47 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.33 ▲0.12 | 96.01 ▼2.87 | 46.10 ▲4.20 |
Short Comment Filter /wp-admin/short-comment-filter-settings.php | 26 | 0.44 | 0.11 | 14.24 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Short_Comment_Filter_Settings' not found in wp-content/plugins/short-comment-filter/views/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/short-comment-filter/short-comment-filter.php:112
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/short-comment-filter-settings.php
- > Network (severe)
wp-admin/short-comment-filter-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No plugin tags provided
short-comment-filter/short-comment-filter.php Passed 13 tests
The entry point to "Short Comment Filter" version 2.2 is a PHP file that has certain tags in its header comment area
87 characters long description:
Automatically Spams or Deletes comments that don't meet a specified length requirement.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin253 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 88 | 201 |
JavaScript | 1 | 1 | 3 | 26 |
Markdown | 1 | 8 | 0 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 25 | |
▷ Static methods | 25 | 100.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin