Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.14ms] Passed 4 tests
This is a short check of server-side resources used by BuddyPress Captcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.36 ▲0.64 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.32 ▼2.75 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.35 ▲1.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.94 ▼3.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.88 ▲2.45 |
BuddyPress Captcha /wp-admin/options-general.php?page=bp-captcha | 3.21 | 29.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
bpcapt_language |
widget_theysaidso_widget |
bpcapt_public |
widget_recent-comments |
can_compress_scripts |
bpcapt_theme |
bpcapt_private |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyPress Captcha
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.35 ▼0.27 | 1.77 ▲0.11 | 43.43 ▼3.69 |
Dashboard /wp-admin | 2,204 ▲24 | 5.47 ▼0.20 | 81.37 ▼21.41 | 40.01 ▼2.76 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.02 ▲0.02 | 40.86 ▲5.71 | 38.05 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.41 ▲0.26 | 680.25 ▼6.32 | 55.49 ▲0.53 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.25 ▲0.04 | 96.36 ▲0.06 | 44.81 ▼0.13 |
BuddyPress Captcha /wp-admin/options-general.php?page=bp-captcha | 945 | 2.16 | 23.53 | 26.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- bpcapt_private
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- bpcapt_theme
- widget_recent-posts
- widget_theysaidso_widget
- bpcapt_public
- bpcapt_language
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=bp-captcha
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=bp-captcha
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-captcha/bpcapt-options.php:14
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/buddypress-captcha/recaptcha/ReCaptcha/RequestMethod/CurlPost.php:37
- > PHP Warning
require_once(wp-content/plugins/buddypress-captcha/recaptcha/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/buddypress-captcha/recaptcha/examples/example-captcha.php on line 36
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/buddypress-captcha/recaptcha/ReCaptcha/RequestMethod/Post.php:35
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/buddypress-captcha/recaptcha/ReCaptcha/RequestMethod/SocketPost.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-captcha/bpcapt-options.php:14
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/buddypress-captcha/recaptcha/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/buddypress-captcha/recaptcha/examples/example-captcha.php on line 36
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (reCAPTCHA Form On The Front-end), #2 (Plugin Option Panel)
buddypress-captcha/bp-recaptcha.php 85% from 13 tests
This is the main PHP file of "BuddyPress Captcha" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-captcha.php" instead of "bp-recaptcha.php")
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WordPress 2.8, BuddyPress 1.2.9")
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 plugin504 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 136 | 565 | 504 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 19.55KB | 6.65KB | ▼ 65.97% |
screenshot-1.png | 24.48KB | 9.64KB | ▼ 60.61% |