Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.52ms] Passed 4 tests
An overview of server-side resources used by reCAPTCHA (v2 & v3) for Asgaros Forum
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.56 ▼0.28 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.36 ▼8.17 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.49 ▼0.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.76 ▼29.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.75 ▲0.03 |
reCAPTCHA /wp-admin/admin.php?page=asgaros-recaptcha | 3.25 | 36.67 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by reCAPTCHA (v2 & v3) for Asgaros Forum
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 13.18 ▼1.11 | 5.18 ▲3.44 | 44.00 ▲2.25 |
Dashboard /wp-admin | 2,224 ▲21 | 5.88 ▼0.16 | 112.24 ▲10.37 | 42.23 ▼2.29 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.01 ▼0.03 | 33.85 ▼2.33 | 37.67 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.51 ▲0.33 | 626.27 ▼40.34 | 66.61 ▲9.98 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.20 ▼0.04 | 98.04 ▼7.87 | 43.95 ▼5.68 |
reCAPTCHA /wp-admin/admin.php?page=asgaros-recaptcha | 964 | 2.19 | 26.99 | 23.38 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/recaptcha-for-asgaros-forum/src/ReCaptcha/RequestMethod/CurlPost.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/recaptcha-for-asgaros-forum/recaptcha.php:6
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/recaptcha-for-asgaros-forum/src/ReCaptcha/RequestMethod/SocketPost.php:38
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/recaptcha-for-asgaros-forum/src/ReCaptcha/RequestMethod/Post.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/recaptcha-for-asgaros-forum/recaptcha-for-asgaros-forum.php:11
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Input google reCAPTCHA site Keys.), #2 (This is how it looks on front-end.)
recaptcha-for-asgaros-forum/recaptcha-for-asgaros-forum.php 92% from 13 tests
The main PHP script in "reCAPTCHA (v2 & v3) for Asgaros Forum" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin597 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 155 | 610 | 597 |
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.29 |
Average class complexity | 5.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin