Benchmarks
Plugin footprint 83% 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: ▲0.12MB] [CPU: ▼2.43ms] Passed 4 tests
Analyzing server-side resources used by reCAPTCHA for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.35 ▲0.97 |
Dashboard /wp-admin | 3.42 ▲0.12 | 49.45 ▲1.11 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 42.74 ▼2.19 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.13 | 80.48 ▼8.75 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 35.85 ▲0.27 |
reCAPTCHA WooCommerce /wp-admin/options-general.php?page=recaptcha-woo/admin-options.php | 3.32 | 33.70 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
rcfwc_tested |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by reCAPTCHA for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲158 | 15.05 ▲0.70 | 9.23 ▲7.67 | 43.32 ▼0.32 |
Dashboard /wp-admin | 2,205 ▲31 | 5.55 ▼0.11 | 92.91 ▲8.31 | 41.12 ▼5.10 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.81 ▲0.86 | 39.51 ▲1.07 | 31.59 ▼5.31 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 24.00 ▲0.71 | 691.98 ▲40.45 | 37.41 ▼15.88 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 5.10 ▲0.90 | 102.15 ▼8.47 | 40.88 ▼5.58 |
reCAPTCHA WooCommerce /wp-admin/options-general.php?page=recaptcha-woo/admin-options.php | 1,093 | 2.69 | 30.71 | 59.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- rcfwc_tested
- widget_recent-comments
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/recaptcha-woo/recaptcha-woo.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: protect, woocommerce, recaptcha, spam, checkout
recaptcha-woo/recaptcha-woo.php 92% from 13 tests
The main PHP file in "reCAPTCHA for WooCommerce" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.4")
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
Good job! No executable or dangerous file extensions detected537 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 95 | 52 | 524 |
JavaScript | 1 | 0 | 1 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
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 | 25 | |
▷ Named functions | 22 | 88.00% |
▷ Anonymous functions | 3 | 12.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
There were not PNG files found in your plugin