Benchmarks
Plugin footprint Passed 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.23MB] [CPU: ▼145.20ms] 75% from 4 tests
Analyzing server-side resources used by No CAPTCHA reCAPTCHA
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 602.05ms on /wp-admin/options-general.php?page=ncr-config)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 37.47 ▲14.25 |
Dashboard /wp-admin | 3.25 ▲0.20 | 49.15 ▲0.06 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 47.84 ▼1.90 |
Add New Post /wp-admin/post-new.php | 5.83 ▲0.40 | 83.69 ▼582.01 |
Media Library /wp-admin/upload.php | 3.21 ▲0.21 | 39.78 ▲3.04 |
No CAPTCHA reCAPTCHA /wp-admin/options-general.php?page=ncr-config | 3.59 | 602.05 |
Server storage [IO: ▲0.06MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ncr_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for No CAPTCHA reCAPTCHA
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲194 | 16.70 ▲1.08 | 12.79 ▲3.96 | 49.04 ▼1.47 |
Dashboard /wp-admin | 3,045 ▲111 | 6.05 ▼0.17 | 143.12 ▼14.26 | 122.40 ▼1.19 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.01 | 70.07 ▼0.94 | 90.31 ▼10.34 |
Add New Post /wp-admin/post-new.php | 1,686 ▲105 | 18.40 ▼1.99 | 379.11 ▼18.26 | 124.29 ▲9.24 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.00 ▼0.01 | 161.37 ▼3.26 | 121.79 ▲2.75 |
No CAPTCHA reCAPTCHA /wp-admin/options-general.php?page=ncr-config | 1,690 | 2.09 | 62.81 | 86.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha/comment-form.php:3
- > PHP Fatal error
Uncaught Error: Class 'Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha/registration.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-recaptcha/mo-admin-notice.php:7
- > PHP Fatal error
Uncaught Error: Class 'Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha/login.php:3
- > PHP Fatal error
Uncaught Error: Class 'Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha/buddypress-registration.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-recaptcha/mo-admin-notice.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== no-captcha-recaptcha ===
) - Tags: There are too many tags (13 tag instead of maximum 10)
no-captcha-recaptcha/no-captcha-recaptcha.php 92% from 13 tests
The main PHP script in "No CAPTCHA reCAPTCHA" version 1.3.4 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin961 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 185 | 122 | 686 |
PO File | 2 | 109 | 133 | 275 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.29 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 26 | 78.79% |
▷ Public methods | 33 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin