Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.73ms] Passed 4 tests
Analyzing server-side resources used by reCAPTCHA in WP comments form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.59 ▼0.84 |
Dashboard /wp-admin | 3.34 ▲0.04 | 60.60 ▲9.18 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 50.92 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.45 ▼11.01 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.81 ▲4.61 |
reCAPTCHA in Comments /wp-admin/options-general.php?page=google_recaptcha_in_wp_comments_settings | 3.25 | 33.24 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
griwpc-params |
widget_recent-comments |
widget_theysaidso_widget |
cool-griwpc-ver |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for reCAPTCHA in WP comments form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲20 | 14.28 ▲0.04 | 2.05 ▲0.04 | 45.54 ▲2.50 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▼0.03 | 95.19 ▲1.68 | 41.02 ▲1.10 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.00 ▼0.02 | 38.39 ▼3.29 | 36.67 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.39 ▼0.24 | 669.77 ▲38.24 | 69.26 ▲13.63 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▲0.01 | 103.28 ▼0.84 | 49.70 ▲2.53 |
reCAPTCHA in Comments /wp-admin/options-general.php?page=google_recaptcha_in_wp_comments_settings | 1,094 | 2.00 | 23.58 | 68.70 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- cool-griwpc-ver
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- griwpc-params
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following items
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/examples/example-captcha.php on line 36
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/tests/ReCaptcha/ReCaptchaTest.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/tests/ReCaptcha/ResponseTest.php:29
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/src/ReCaptcha/RequestMethod/Post.php:35
- > PHP Warning
require_once(wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/examples/example-captcha.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha-in-wp-comments.php:15
- > PHP Fatal error
Uncaught Error: Class 'griwpc_interface' not found in wp-content/plugins/recaptcha-in-wp-comments-form/includes/recaptcha.php:16
- > PHP Fatal error
Uncaught Error: Class 'griwpc_interface' not found in wp-content/plugins/recaptcha-in-wp-comments-form/includes/frontend-interface.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/tests/ReCaptcha/RequestMethod/PostTest.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/recaptcha-in-wp-comments-form/recaptcha/tests/ReCaptcha/RequestMethod/CurlPostTest.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
recaptcha-in-wp-comments-form/recaptcha-in-wp-comments.php 77% from 13 tests
The primary PHP file in "reCAPTCHA in WP comments form" version 9.1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 418 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("recaptcha-in-wp-comments-form.php" instead of "recaptcha-in-wp-comments.php")
- Domain Path: The domain path folder was not found ("/languages")
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,291 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 836 | 1,051 | 2,087 |
JavaScript | 4 | 211 | 141 | 545 |
CSS | 3 | 76 | 70 | 373 |
Markdown | 2 | 29 | 0 | 108 |
SVG | 4 | 0 | 4 | 99 |
JSON | 1 | 0 | 0 | 28 |
INI | 1 | 1 | 0 | 20 |
XML | 1 | 0 | 0 | 17 |
YAML | 1 | 4 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 26 | 17.11% |
▷ Public methods | 150 | 98.68% |
▷ Protected methods | 2 | 1.32% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 21 | |
▷ Global constants | 14 | 66.67% |
▷ Class constants | 7 | 33.33% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
39 PNG files occupy 0.79MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/g-spam-die.png | 2.53KB | 1.76KB | ▼ 30.37% |
images/g-spam-trash.png | 0.88KB | 0.60KB | ▼ 32.01% |
images/g-select-language.png | 3.88KB | 2.81KB | ▼ 27.65% |
images/g-activation-accordion.png | 16.29KB | 7.90KB | ▼ 51.52% |
images/g-installation-metabox.png | 16.71KB | 13.09KB | ▼ 21.65% |