Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.37ms] Passed 4 tests
Analyzing server-side resources used by reCAPTCHA Jetpack
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.68 ▼3.59 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.68 ▼13.15 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.86 ▲3.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.69 ▼7.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.94 ▲2.37 |
reCAPTCHA Jetpack /wp-admin/options-general.php?page=recaptcha-jetpack | 3.24 | 32.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
bozdoz_rjp_recaptcha_type |
db_upgraded |
widget_recent-comments |
bozdoz_rjp_site_key |
bozdoz_rjp_secret_key |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for reCAPTCHA Jetpack
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼0.88 | 1.72 ▼0.09 | 43.69 ▼0.47 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▼0.02 | 108.61 ▲0.74 | 40.78 ▲1.28 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 45.07 ▲8.03 | 36.79 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 23.15 ▲5.72 | 618.92 ▼56.45 | 49.62 ▼4.19 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▲0.01 | 101.48 ▲1.95 | 42.67 ▼1.27 |
reCAPTCHA Jetpack /wp-admin/options-general.php?page=recaptcha-jetpack | 887 | 2.02 | 23.38 | 27.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/recaptcha-jetpack/admin/admin.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/recaptcha-jetpack/admin/admin.php on line 48
- > PHP Notice
Undefined variable: defaults in wp-content/plugins/recaptcha-jetpack/admin/admin.php on line 48
- > PHP Notice
Undefined variable: plugin_title in wp-content/plugins/recaptcha-jetpack/admin/admin.php on line 35
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: google, captcha, contact, jetpack, recaptcha
recaptcha-jetpack/recaptcha-jetpack.php Passed 13 tests
The main file in "reCAPTCHA Jetpack" v. 0.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
A simple plugin that adds a Google reCAPTCHA to the Jetpack contact form. Requires the Jetpack plugin.
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 plugin362 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 178 | 279 |
CSS | 1 | 5 | 0 | 58 |
JavaScript | 1 | 8 | 6 | 21 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 5 | 29.41% |
▷ Public methods | 14 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 17.65% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
No PNG images were found in this plugin