Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.81ms] Passed 4 tests
A check of server-side resources used by Affiliates Manager Google reCAPTCHA Integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.60 ▼3.18 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.78 ▼9.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.79 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.75 ▼8.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.28 ▲4.36 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Affiliates Manager Google reCAPTCHA Integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.20 ▼1.42 | 1.69 ▲0.07 | 39.77 ▲2.16 |
Dashboard /wp-admin | 2,208 ▲17 | 5.80 ▼0.10 | 99.96 ▼2.11 | 40.32 ▼0.03 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.06 ▲0.04 | 39.62 ▲2.26 | 37.45 ▲4.50 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 17.68 ▼5.86 | 648.67 ▼40.87 | 65.67 ▲9.73 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.31 ▲0.12 | 110.39 ▲6.16 | 47.28 ▲3.64 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- 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
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/affiliates-manager-google-recaptcha-integration/lib/ReCaptcha/RequestMethod/SocketPost.php:38
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/affiliates-manager-google-recaptcha-integration/lib/ReCaptcha/RequestMethod/Post.php:36
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/affiliates-manager-google-recaptcha-integration/lib/ReCaptcha/RequestMethod/CurlPost.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: affiliates manager, recaptcha, affiliate, captcha, affiliates...
affiliates-manager-google-recaptcha-integration/affmgr-recaptcha-addon.php 85% from 13 tests
The principal PHP file in "Affiliates Manager Google reCAPTCHA Integration" v. 1.0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affiliates-manager-google-recaptcha-integration.php" instead of "affmgr-recaptcha-addon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected524 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 149 | 615 | 524 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 1 | 2.13% |
▷ Public methods | 47 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin