Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-recaptcha-bp/recaptchalib.php+42
Methods with the same name as their class will not be constructors in a future version of PHP; ReCaptcha has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼59.51ms] Passed 4 tests
Server-side resources used by WP-reCAPTCHA-bp
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.28 | 5.77 ▼36.30 |
Dashboard /wp-admin | 2.21 ▼1.14 | 7.23 ▼58.46 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 7.24 ▼39.87 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.69 | 6.90 ▼103.40 |
Media Library /wp-admin/upload.php | 2.21 ▼1.03 | 5.75 ▼32.20 |
WP-reCAPTCHA-bp /wp-admin/options-general.php?page=wp-recaptcha-bp/recaptcha.php | 2.21 | 7.17 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
recaptcha_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP-reCAPTCHA-bp
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲28 | 14.35 ▲0.00 | 1.84 ▼0.02 | 46.71 ▲8.09 |
Dashboard /wp-admin | 2,208 ▲31 | 5.65 ▲0.00 | 85.31 ▼6.43 | 38.55 ▼2.75 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 1.99 ▼0.10 | 34.65 ▼3.34 | 37.62 ▲2.82 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.25 ▼0.27 | 673.97 ▼14.44 | 63.81 ▼4.47 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▼0.03 | 97.89 ▼0.10 | 41.36 ▼10.18 |
WP-reCAPTCHA-bp /wp-admin/options-general.php?page=wp-recaptcha-bp/recaptcha.php | 1,111 | 2.17 | 23.62 | 26.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-recaptcha-bp/recaptchalib.php+42
Methods with the same name as their class will not be constructors in a future version of PHP; ReCaptcha has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp-recaptcha-bp/recaptcha.php
- > Deprecated in wp-content/plugins/wp-recaptcha-bp/recaptchalib.php+42
Methods with the same name as their class will not be constructors in a future version of PHP; ReCaptcha has a deprecated constructor
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-recaptcha-bp/settings.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-recaptcha-bp/wp-plugin.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-recaptcha-bp/wp-plugin.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-recaptcha-bp/wp-plugin.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function unregister_setting() in wp-content/plugins/wp-recaptcha-bp/uninstall.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-recaptcha-bp/wp-plugin.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-recaptcha-bp/wp-plugin.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (The reCAPTCHA Settings), #2 (Comments page with reCAPTCHA)
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-recaptcha-bp ===
)
wp-recaptcha-bp/wp-recaptcha.php 92% from 13 tests
"WP-reCAPTCHA-bp" version 4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-recaptcha-bp.php" instead of "wp-recaptcha.php")
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
No dangerous file extensions were detected642 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 118 | 144 | 616 |
reStructuredText | 1 | 9 | 3 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 9 | 18.00% |
▷ Public methods | 42 | 84.00% |
▷ Protected methods | 5 | 10.00% |
▷ Private methods | 3 | 6.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 100.76KB | 34.89KB | ▼ 65.37% |
screenshot-1.png | 91.10KB | 34.39KB | ▼ 62.25% |