Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.90MB] [CPU: ▼48.63ms] Passed 4 tests
A check of server-side resources used by CommentSafe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.83 ▼35.71 |
Dashboard /wp-admin | 2.11 ▼1.20 | 5.90 ▼41.57 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.66 ▼36.40 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.39 ▼80.83 |
Media Library /wp-admin/upload.php | 2.11 ▼1.13 | 4.57 ▼29.49 |
CommentSafe /wp-admin/options-general.php?page=comment-safe-settings | 2.11 | 5.53 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
_wpcar_autotime_limit |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
_wpcar_maxtime_limit |
Browser metrics Passed 4 tests
Checking browser requirements for CommentSafe
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲143 | 13.50 ▼0.85 | 8.62 ▲6.68 | 43.56 ▲0.86 |
Dashboard /wp-admin | 2,212 ▲27 | 4.87 ▼0.04 | 102.95 ▼7.12 | 40.39 ▼6.33 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.03 | 36.29 ▼1.14 | 35.89 ▲2.62 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,729 | 26.05 ▲2.97 | 836.65 ▲234.50 | 62.60 ▲9.29 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.16 ▼0.03 | 94.93 ▼9.23 | 40.07 ▼4.52 |
CommentSafe /wp-admin/options-general.php?page=comment-safe-settings | 802 | 2.08 | 25.58 | 27.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wpcar handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 8 options in the database
- _wpcar_autotime_limit
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- _wpcar_maxtime_limit
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=comment-safe-settings
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wpcar handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=comment-safe-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wpcar handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/commentsafe/1.2/__MACOSX/comment-safe/._comment-safe-admin.php
- > /wp-content/plugins/commentsafe/1.2/__MACOSX/._comment-safe-admin.php
- > /wp-content/plugins/commentsafe/1.2/__MACOSX/._comment-safe.php
- > /wp-content/plugins/commentsafe/__MACOSX/comment-safe/._comment-safe.php
- > /wp-content/plugins/commentsafe/__MACOSX/comment-safe/._comment-safe-admin.php
- > /wp-content/plugins/commentsafe/1.2/__MACOSX/comment-safe/._comment-safe.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/commentsafe/1.2/comment-safe-admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/commentsafe/comment-safe-admin.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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: timer in comments, engagements, time in post comment button, improve bounce rate, stop spam comments...
commentsafe/comment-safe.php 85% from 13 tests
Analyzing the main PHP file in "CommentSafe" version 1.2
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 216 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("commentsafe.php" instead of "comment-safe.php")
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 plugin262 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 96 | 16 | 239 |
JavaScript | 1 | 10 | 5 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.09% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected