Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.74ms] Passed 4 tests
An overview of server-side resources used by reCAPTCHA for MW WP Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.48 ▲2.85 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.74 ▲4.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.09 ▲1.80 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.94 ▼2.34 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 45.76 ▲11.68 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for reCAPTCHA for MW WP Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.27 | 1.73 ▲0.14 | 44.46 ▲2.11 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.02 | 84.92 ▼1.42 | 38.62 ▼6.39 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.95 ▼0.06 | 38.65 ▲2.58 | 32.06 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 23.55 ▲0.27 | 700.13 ▲22.69 | 49.51 ▼5.89 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.08 | 106.79 ▼8.20 | 45.09 ▼4.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/recaptcha-for-mw-wp-form/recaptcha-for-mw-wp-form.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Form_Abstract_Validation_Rule' not found in wp-content/plugins/recaptcha-for-mw-wp-form/classes/recaptcha-v3.php:9
- > PHP Notice
Undefined variable: result in wp-content/plugins/recaptcha-for-mw-wp-form/views/admin.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Form_reCAPTCHA\\Controllers\\Controller' not found in wp-content/plugins/recaptcha-for-mw-wp-form/controllers/AdminController.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/recaptcha-for-mw-wp-form/views/admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/recaptcha-for-mw-wp-form/recaptcha-for-mw-wp-form.php:19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/recaptcha-for-mw-wp-form/recaptcha-for-mw-wp-form.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Form_reCAPTCHA\\Classes\\Util' not found in wp-content/plugins/recaptcha-for-mw-wp-form/classes/functions.php:7
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/recaptcha-for-mw-wp-form/recaptcha-for-mw-wp-form.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: A description for screenshot #1 is missing in recaptcha-for-mw-wp-form/assets to your readme.txt
- Requires at least: Invalid plugin version format
recaptcha-for-mw-wp-form/recaptcha-for-mw-wp-form.php 92% from 13 tests
The main PHP file in "reCAPTCHA for MW WP Form" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin389 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 74 | 97 | 367 |
PO File | 1 | 4 | 5 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 5 | 22.73% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 3 | 13.64% |
▷ Private methods | 1 | 4.55% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/admin/pic-1.png | 59.40KB | 19.12KB | ▼ 67.81% |
assets/img/admin/pic-0.png | 29.20KB | 9.24KB | ▼ 68.35% |