Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.63ms] Passed 4 tests
An overview of server-side resources used by ReCaptcha Integration for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.35 ▼3.27 |
Dashboard /wp-admin | 3.54 ▲0.23 | 51.11 ▲0.86 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 51.22 ▲3.84 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 84.98 ▼14.62 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 36.16 ▲2.53 |
ReCaptcha /wp-admin/options-general.php?page=recaptcha | 3.43 | 32.87 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 20 new options
New WordPress options |
---|
recaptcha_lockout |
recaptcha_enable_lostpw |
recaptcha_comment_use_42_filter |
widget_recent-posts |
widget_recent-comments |
recaptcha_enable_login |
theysaidso_admin_options |
recaptcha_flavor |
widget_theysaidso_widget |
recaptcha_disable_for_known_users |
... |
Browser metrics Passed 4 tests
A check of browser resources used by ReCaptcha Integration for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.30 ▼1.09 | 1.60 ▼0.32 | 40.60 ▼2.51 |
Dashboard /wp-admin | 2,218 ▲33 | 5.81 ▲0.93 | 94.46 ▼26.34 | 40.49 ▼3.05 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.16 ▲0.14 | 37.37 ▼2.86 | 34.16 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,547 ▲27 | 23.28 ▲0.22 | 676.28 ▲13.21 | 55.67 ▲6.82 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.27 ▲0.08 | 95.68 ▼8.19 | 44.23 ▲2.35 |
ReCaptcha /wp-admin/options-general.php?page=recaptcha | 789 | 1.71 | 24.45 | 27.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 20 options in the database
- widget_recent-comments
- recaptcha_noscript
- recaptcha_enable_login
- recaptcha_theme
- recaptcha_comment_use_42_filter
- recaptcha_lockout
- recaptcha_enable_signup
- recaptcha_language
- recaptcha_disable_submit
- recaptcha_enable_lostpw
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-recaptcha-integration/wp-recaptcha-integration.php:32
- > PHP Fatal error
Uncaught Error: Class 'cforms2_captcha' not found in wp-content/plugins/wp-recaptcha-integration/inc/class-wp_recaptcha_cforms2.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_reCaptcha_Captcha' not found in wp-content/plugins/wp-recaptcha-integration/inc/class-wp_recaptcha_nocaptcha.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_reCaptcha_Captcha' not found in wp-content/plugins/wp-recaptcha-integration/inc/class-wp_recaptcha_recaptcha.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Plugin Settings (v 1.1.4)), #2 (Ninja Form Integration), #3 (Contact Form 7 Integration)
wp-recaptcha-integration/wp-recaptcha-integration.php 92% from 13 tests
The principal PHP file in "ReCaptcha Integration for WordPress" v. 1.2.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,036 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 409 | 804 | 1,751 |
PO File | 6 | 441 | 939 | 1,132 |
CSS | 1 | 9 | 0 | 102 |
JavaScript | 2 | 6 | 4 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 14 | 10.29% |
▷ Public methods | 113 | 83.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 16.91% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
9 PNG files occupy 0.33MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/recaptcha-theme-red.png | 18.90KB | 8.94KB | ▼ 52.71% |
screenshot-1.png | 132.03KB | 48.95KB | ▼ 62.93% |
images/recaptcha-theme-clean.png | 12.69KB | 8.58KB | ▼ 32.40% |
images/recaptcha-theme-blackglass.png | 19.87KB | 10.52KB | ▼ 47.06% |
images/grecaptcha-theme-light.png | 6.24KB | 2.71KB | ▼ 56.61% |