Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.37ms] Passed 4 tests
An overview of server-side resources used by Comments Form Captcha
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.91 ▼4.37 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.16 ▼5.20 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.47 ▼5.49 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 96.16 ▼6.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.83 ▲3.69 |
Comments Form Captcha /wp-admin/options-general.php?page=for-captcha-setting | 3.20 | 24.50 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Comments Form Captcha
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.94 ▼0.21 | 18.93 ▲17.13 | 39.78 ▼7.17 |
Dashboard /wp-admin | 2,207 ▲16 | 5.85 ▼0.05 | 98.25 ▼1.85 | 38.13 ▼3.31 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.00 ▲0.03 | 40.61 ▲0.88 | 35.18 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.25 ▲5.82 | 600.38 ▼46.28 | 52.55 ▲0.92 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▼0.07 | 98.50 ▼6.14 | 42.04 ▼7.61 |
Comments Form Captcha /wp-admin/options-general.php?page=for-captcha-setting | 822 | 2.07 | 28.99 | 34.48 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=for-captcha-setting
- > Notice in wp-content/plugins/captcha-for-comments-form/init.php+73
Trying to access array offset on value of type bool
SRP 50% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/captcha-for-comments-form/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: spam, comments, captcha, googlerecaptcha
captcha-for-comments-form/init.php 92% from 13 tests
This is the main PHP file of "Comments Form Captcha" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("captcha-for-comments-form.php" instead of "init.php")
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
Success! There were no dangerous files found in this plugin155 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 7 | 131 |
JavaScript | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ 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 | 1 | 50.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 1 | 8.33% |
▷ Private methods | 2 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin