Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/base-class.php+24
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.75MB] [CPU: ▼215.45ms] Passed 4 tests
This is a short check of server-side resources used by No CAPTCHA reCAPTCHA for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.88 ▼0.84 | 6.46 ▼18.42 |
Dashboard /wp-admin | 1.90 ▼1.15 | 7.30 ▼36.07 |
Posts /wp-admin/edit.php | 1.90 ▼1.21 | 6.18 ▼36.60 |
Add New Post /wp-admin/post-new.php | 1.90 ▼3.53 | 6.11 ▼761.65 |
Media Library /wp-admin/upload.php | 1.90 ▼1.10 | 5.57 ▼27.49 |
No CAPTCHA /wp-admin/admin.php?page=wc-ncr | 1.90 | 6.31 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for No CAPTCHA reCAPTCHA for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,776 ▲180 | 15.93 ▲0.45 | 10.10 ▲0.09 | 52.40 ▲1.85 |
Dashboard /wp-admin | 3,040 ▲106 | 6.13 ▲0.03 | 136.56 ▼16.65 | 122.01 ▲10.81 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 62.50 ▲0.75 | 91.51 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,872 ▲200 | 19.11 ▲0.04 | 373.09 ▼11.26 | 110.01 ▼3.04 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▼0.00 | 148.77 ▼5.50 | 119.44 ▼6.82 |
No CAPTCHA /wp-admin/admin.php?page=wc-ncr | 1,826 | 2.12 | 59.71 | 75.05 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/base-class.php+24
Trying to access array offset on value of type bool
Smoke tests 50% 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)
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wc-ncr
- > Notice in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/lost-password.php+11
Trying to access array offset on value of type bool
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/lost-password.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/mo-admin-notice.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/registration.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/mo-admin-notice.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/login.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
no-captcha-recaptcha-for-woocommerce/woocommerce-no-captcha-recaptcha.php 85% from 13 tests
The entry point to "No CAPTCHA reCAPTCHA for WooCommerce" version 1.2.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("no-captcha-recaptcha-for-woocommerce.php" instead of "woocommerce-no-captcha-recaptcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin760 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 153 | 62 | 614 |
PO File | 1 | 61 | 61 | 146 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.17 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 18 | 72.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
No PNG images were found in this plugin