Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.63ms] Passed 4 tests
A check of server-side resources used by Bonafide Tech Google Recaptcha for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 44.37 ▲5.90 |
Dashboard /wp-admin | 3.32 ▼0.02 | 49.69 ▼7.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.19 ▲1.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.13 ▼14.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.55 ▲6.21 |
BFT Google reCAPTCHA for WordPress /wp-admin/options-general.php?page=bftgr-settings | 3.21 | 34.34 |
Server storage [IO: ▲0.28MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 16 new options
New WordPress options |
---|
db_upgraded |
bftgr_secret_key |
bftgr_theme |
bftgr_wp_registration |
bftgr_error_message |
widget_recent-posts |
bftgr_size |
widget_recent-comments |
bftgr_wp_forgot_pwd |
bftgr_site_key |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Bonafide Tech Google Recaptcha for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.08 | 1.83 ▲0.07 | 43.51 ▲3.50 |
Dashboard /wp-admin | 2,196 ▲19 | 5.59 ▲0.02 | 91.46 ▲6.89 | 36.21 ▼6.47 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.03 | 39.02 ▲2.90 | 35.27 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.11 ▼0.49 | 637.00 ▼22.39 | 51.49 ▼6.20 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.28 ▲0.07 | 108.14 ▲9.71 | 46.26 ▲3.12 |
BFT Google reCAPTCHA for WordPress /wp-admin/options-general.php?page=bftgr-settings | 1,079 | 2.03 | 32.86 | 48.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 16 options in the database
- bftgr_wp_registration
- bftgr_wp_forgot_pwd
- bftgr_type
- bftgr_secret_key
- bftgr_site_key
- bftgr_error_message
- can_compress_scripts
- bftgr_theme
- widget_recent-comments
- widget_theysaidso_widget
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: captcha, google recaptcha, woocommerce, security, wordpress...
bonafidetech-google-recaptcha/index.php 92% from 13 tests
The principal PHP file in "Bonafide Tech Google Recaptcha for WordPress" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("bonafidetech-google-recaptcha.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected904 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 251 | 212 | 796 |
JavaScript | 2 | 10 | 3 | 62 |
CSS | 2 | 9 | 0 | 46 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 36 | |
▷ Static methods | 8 | 22.22% |
▷ Public methods | 33 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.33% |
Functions | 16 | |
▷ Named functions | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.25MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/03.png | 34.95KB | 9.59KB | ▼ 72.57% |
screenshots/01.png | 80.04KB | 21.41KB | ▼ 73.25% |
screenshots/04.png | 29.29KB | 8.55KB | ▼ 70.81% |
screenshots/02.png | 38.66KB | 10.41KB | ▼ 73.07% |
screenshots/05.png | 67.97KB | 18.34KB | ▼ 73.02% |