Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.18MB] [CPU: ▼11.71ms] Passed 4 tests
A check of server-side resources used by Javascript Comment Form Protection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.61 | 21.19 ▼22.86 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.07 ▼5.16 |
Posts /wp-admin/edit.php | 3.19 ▼0.16 | 31.94 ▼19.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.43 ▲2.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.26 ▲0.81 |
Comment Form Protection Password /wp-admin/options-general.php?page=functions | 3.22 | 29.52 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Javascript Comment Form Protection
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,460 ▼297 | 14.44 ▲0.02 | 0.52 ▼1.55 | 18.70 ▼34.15 |
Dashboard /wp-admin | 2,213 ▲28 | 4.88 ▼0.96 | 100.98 ▼17.51 | 38.75 ▼8.40 |
Posts /wp-admin/edit.php | 45 ▼2,041 | 0.44 ▼1.56 | 0.06 ▼39.06 | 9.98 ▼26.49 |
Add New Post /wp-admin/post-new.php | 1,525 ▲127 | 23.35 ▲5.46 | 604.89 ▼11.51 | 58.50 ▲4.41 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.09 | 92.58 ▼11.69 | 41.95 ▼1.10 |
Comment Form Protection Password /wp-admin/options-general.php?page=functions | 780 | 2.03 | 24.18 | 24.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- recovery_mode_email_last_sent
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 | 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/javascript-comment-form-protection/javascript-comment-form-protection.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: comment form protection, form protection, stop bots, comment protection, stop comment spam...
javascript-comment-form-protection/javascript-comment-form-protection.php Passed 13 tests
The main file in "Javascript Comment Form Protection" v. 0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Simple script to stop automated bots filling out comments now with password protection and encryption.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected91 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 11 | 91 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin