Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼299.19ms] Passed 4 tests
Server-side resources used by CAPTCHA 4WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.21 | 61.45 ▲10.46 |
Dashboard /wp-admin | 3.79 ▲0.38 | 36.42 ▲2.70 |
Posts /wp-admin/edit.php | 4.02 ▲0.37 | 40.27 ▲4.16 |
Add New Post /wp-admin/post-new.php | 7.32 ▲0.35 | 97.26 ▼1,209.15 |
Media Library /wp-admin/upload.php | 3.74 ▲0.44 | 29.86 ▲5.55 |
CAPTCHA Configuration /wp-admin/admin.php?page=c4wp-admin-captcha | 3.65 | 26.01 |
Settings & Placements /wp-admin/admin.php?page=c4wp-admin-settings | 3.65 | 25.20 |
Premium Features ➤ /wp-admin/admin.php?page=c4wp-admin-upgrade | 3.67 | 24.38 |
Help & Contact Us /wp-admin/admin.php?page=c4wp-admin-help | 3.67 | 24.45 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 2 new options
New WordPress options |
---|
c4wp_70_upgrade_complete |
c4wp_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for CAPTCHA 4WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲71 | 15.54 ▼0.08 | 6.34 ▲0.07 | 2.38 ▼0.12 |
Dashboard /wp-admin | 2,922 ▲71 | 6.23 ▲0.03 | 117.16 ▼20.66 | 188.09 ▲25.71 |
Posts /wp-admin/edit.php | 2,736 ▲45 | 3.12 ▼0.11 | 66.27 ▲1.05 | 150.12 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,718 ▲57 | 21.25 ▲4.94 | 423.22 ▼6.32 | 165.34 ▲5.62 |
Media Library /wp-admin/upload.php | 1,741 ▲43 | 5.48 ▼0.06 | 126.29 ▼17.92 | 215.21 ▲28.25 |
CAPTCHA Configuration /wp-admin/admin.php?page=c4wp-admin-captcha | 1,692 | 2.94 | 60.89 | 153.46 |
Settings & Placements /wp-admin/admin.php?page=c4wp-admin-settings | 1,287 | 2.60 | 59.84 | 166.47 |
Premium Features ➤ /wp-admin/admin.php?page=c4wp-admin-upgrade | 2,098 | 2.55 | 58.73 | 146.84 |
Help & Contact Us /wp-admin/admin.php?page=c4wp-admin-help | 1,486 | 2.57 | 54.93 | 160.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 2 options
- c4wp_70_upgrade_complete
- c4wp_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant C4WP_PLUGIN_URL - assumed 'C4WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-nocaptcha-recaptcha/admin/templates/upgrade/index.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-nocaptcha-recaptcha/admin/templates/upgrade/index.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-nocaptcha-recaptcha/admin/templates/help/sidebar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-nocaptcha-recaptcha/admin/templates/help/sidebar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-nocaptcha-recaptcha/admin/templates/help/sidebar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/advanced-nocaptcha-recaptcha/admin/templates/help/index.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-nocaptcha-recaptcha/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-nocaptcha-recaptcha/anr-captcha-class.php:553
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-nocaptcha-recaptcha/admin/settings.php:895
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: captcha, forms captcha, spam protection, captcha for woocommerce, invisible captcha...
advanced-nocaptcha-recaptcha/advanced-nocaptcha-recaptcha.php 92% from 13 tests
Analyzing the main PHP file in "CAPTCHA 4WP" version 7.0.6.1
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 238 characters long)
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 detected2,673 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 291 | 139 | 2,130 |
CSS | 2 | 29 | 12 | 325 |
JavaScript | 1 | 34 | 25 | 218 |
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.48 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 4 | 7.41% |
▷ Public methods | 50 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.41% |
Functions | 30 | |
▷ Named functions | 26 | 86.67% |
▷ Anonymous functions | 4 | 13.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/20x20-icon.png | 0.74KB | 0.89KB | 0.00% |
assets/img/c4wp-logo-300x300.png | 5.07KB | 4.23KB | ▼ 16.57% |
assets/img/c4wp-logo-full.png | 14.92KB | 5.01KB | ▼ 66.40% |
assets/img/wp-white-security.png | 8.80KB | 4.31KB | ▼ 51.05% |
assets/img/features-image.png | 53.76KB | 16.88KB | ▼ 68.60% |