Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.61MB] [CPU: ▲19.59ms] Passed 4 tests
An overview of server-side resources used by GravityCaptcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.50 ▲5.03 | 64.09 ▲25.58 |
Dashboard /wp-admin | 8.52 ▲5.17 | 71.02 ▲10.96 |
Posts /wp-admin/edit.php | 8.52 ▲5.16 | 74.69 ▲26.30 |
Add New Post /wp-admin/post-new.php | 8.95 ▲3.07 | 116.10 ▲15.52 |
Media Library /wp-admin/upload.php | 8.52 ▲5.29 | 58.79 ▲28.68 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.52 | 52.23 |
Server storage [IO: ▲3.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 174 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
fs_accounts |
db_upgraded |
fs_debug_mode |
fs_active_plugins |
fs_gdpr |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for GravityCaptcha
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲50 | 13.70 ▼0.61 | 1.61 ▼0.49 | 28.99 ▼15.72 |
Dashboard /wp-admin | 2,230 ▲38 | 5.86 ▲0.93 | 108.64 ▲2.79 | 44.95 ▼0.13 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.02 ▲0.02 | 42.26 ▲5.54 | 38.64 ▲8.33 |
Add New Post /wp-admin/post-new.php | 1,523 ▲1 | 23.09 ▼0.19 | 587.01 ▼35.48 | 53.54 ▲1.26 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.30 ▲0.13 | 97.31 ▲2.66 | 42.45 ▼1.54 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,056 | 1.72 | 22.34 | 26.61 |
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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/better-captcha-gravity-forms/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- fs_debug_mode
- theysaidso_admin_options
- db_upgraded
- fs_gdpr
- fs_accounts
- can_compress_scripts
- widget_recent-comments
- fs_active_plugins
- widget_recent-posts
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/better-captcha-gravity-forms/better-captcha-gravity-forms.php:11
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/better-captcha-gravity-forms/class-gravitycaptcha-addon.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in better-captcha-gravity-forms/assets to your readme.txt
better-captcha-gravity-forms/better-captcha-gravity-forms.php 92% from 13 tests
"GravityCaptcha" version 0.5.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 485 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin31,447 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 7,326 | 16,087 | 31,066 |
JavaScript | 5 | 36 | 59 | 204 |
CSS | 12 | 14 | 1 | 175 |
SVG | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 86.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,176 | |
▷ Static methods | 175 | 14.88% |
▷ Public methods | 836 | 71.09% |
▷ Protected methods | 15 | 1.28% |
▷ Private methods | 325 | 27.64% |
Functions | 96 | |
▷ Named functions | 96 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 130 | |
▷ Global constants | 105 | 80.77% |
▷ Class constants | 25 | 19.23% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/lockicon.png | 12.27KB | 2.28KB | ▼ 81.42% |
freemius/assets/img/better-captcha-gravity-forms.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/lockiconblack.png | 5.42KB | 3.17KB | ▼ 41.47% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |