Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.38ms] Passed 4 tests
A check of server-side resources used by Comment Filtering
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.81 ▼9.71 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.53 ▼6.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.12 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.72 ▼13.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.89 ▼4.28 |
Server storage [IO: ▲0.13MB] [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: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Comment Filtering
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.93 ▼0.65 | 9.26 ▲7.31 | 38.02 ▼6.19 |
Dashboard /wp-admin | 2,206 ▲21 | 4.82 ▼1.00 | 98.66 ▼10.86 | 41.15 ▼5.17 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.00 | 41.29 ▲4.29 | 35.12 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.29 ▲0.10 | 669.39 ▲4.36 | 67.13 ▲3.49 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▼0.02 | 97.91 ▼18.02 | 43.94 ▼6.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: end_date in wp-content/plugins/comment-filtering/ajax_comment_filter.php on line 24
- > PHP Notice
Undefined index: start_date in wp-content/plugins/comment-filtering/ajax_comment_filter.php on line 23
- > PHP Notice
Undefined index: selected_range in wp-content/plugins/comment-filtering/ajax_comment_filter.php on line 25
- > PHP Notice
Undefined index: search_term in wp-content/plugins/comment-filtering/ajax_comment_filter.php on line 22
- > PHP Notice
Undefined index: reset in wp-content/plugins/comment-filtering/ajax_comment_filter.php on line 26
- > PHP Notice
Undefined index: post_id in wp-content/plugins/comment-filtering/ajax_comment_filter.php on line 21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (This shows what the search and filter interface looks like (Please note, Bootstrap is required)) image required
comment-filtering/comment-filtering.php Passed 13 tests
The primary PHP file in "Comment Filtering" version 1.0.0 is used by WordPress to initiate all plugin functionality
102 characters long description:
Allow users to search comments by terms and filter by time periods. Makes use of Bootstrap Timepicker.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin287 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 24 | 96 | 232 |
JavaScript | 2 | 6 | 21 | 46 |
CSS | 2 | 0 | 10 | 9 |
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.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 49.87KB | 15.40KB | ▼ 69.13% |