Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/comment-redlist/comment-redlist.php+386
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.81MB] [CPU: ▼54.24ms] Passed 4 tests
An overview of server-side resources used by Comment Redlist
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.49 ▼38.06 |
Dashboard /wp-admin | 2.20 ▼1.10 | 6.70 ▼49.26 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.60 ▼40.61 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 7.11 ▼89.01 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 6.72 ▼29.35 |
Comment Redlist /wp-admin/options-general.php?page=comment_redlist | 2.20 | 7.65 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
comment_redlist |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Comment Redlist: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.51 ▲0.21 | 1.86 ▲0.18 | 42.17 ▲4.80 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.97 | 95.70 ▼21.35 | 38.88 ▼5.38 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.00 | 35.69 ▼1.71 | 30.70 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.27 ▲0.09 | 657.97 ▼23.90 | 56.42 ▲2.91 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.02 | 97.13 ▼16.99 | 42.88 ▼2.50 |
Comment Redlist /wp-admin/options-general.php?page=comment_redlist | 1,133 | 2.17 | 24.17 | 33.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/comment-redlist/comment-redlist.php+386
Undefined index: ip_addrs
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=comment_redlist
- > Notice in wp-content/plugins/comment-redlist/inc/dedicated-options-page.php+31
Undefined index: ip_addrs
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=comment_redlist
- > Notice in wp-content/plugins/comment-redlist/inc/dedicated-options-page.php+17
Undefined index: sequences
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
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/comment-redlist/comment-redlist.php:64
- > PHP Notice
Undefined variable: js_sequences in wp-content/plugins/comment-redlist/inc/jquery-redlist.php on line 14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/comment-redlist/inc/dedicated-options-page.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/comment-redlist/inc/jquery-redlist.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/comment-redlist/inc/lang.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/comment-redlist/inc/settings-discussion-field.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: comments, red, list, redlist, spam...
comment-redlist/comment-redlist.php Passed 13 tests
The primary PHP file in "Comment Redlist" version 1.0.9 is used by WordPress to initiate all plugin functionality
105 characters long description:
Blocks spam, identified by your specified character sequences, instead of inserting it into the database.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,002 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 147 | 209 | 799 |
PO File | 1 | 51 | 55 | 195 |
HTML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.86 |
Average class complexity | 77.00 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin