Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼10.23ms] Passed 4 tests
Server-side resources used by F13 reCaptcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.57 ▼3.18 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.05 ▼4.93 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.90 ▼3.69 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 79.64 ▼29.12 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.42 ▲1.45 |
Google reCaptcha /wp-admin/admin.php?page=f13-google-recaptcha | 3.28 | 29.06 |
Plugins /wp-admin/admin.php?page=f13-settings | 3.32 | 462.40 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
F13 reCaptcha: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲196 | 13.94 ▼0.44 | 5.05 ▲3.46 | 40.28 ▼0.88 |
Dashboard /wp-admin | 2,229 ▲38 | 4.86 ▼1.04 | 109.82 ▲10.04 | 42.35 ▼2.96 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.02 ▼0.03 | 39.71 ▼1.27 | 36.08 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 18.45 ▲0.25 | 655.53 ▲46.98 | 47.64 ▲0.39 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.22 ▼0.01 | 99.92 ▼3.69 | 42.22 ▼1.39 |
Google reCaptcha /wp-admin/admin.php?page=f13-google-recaptcha | 879 | 2.02 | 26.20 | 30.31 |
Plugins /wp-admin/admin.php?page=f13-settings | 924 | 2.02 | 23.77 | 28.26 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/f13-recaptcha/f13-recaptcha.php on line 15
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/f13-recaptcha/f13-recaptcha.php on line 15
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/f13-recaptcha/f13-recaptcha.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== f13-recaptcha ===
)
f13-recaptcha/f13-recaptcha.php Passed 13 tests
The primary PHP file in "F13 reCaptcha" version 1.0.0 is used by WordPress to initiate all plugin functionality
36 characters long description:
Add reCaptcha to your wordpress site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected299 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 53 | 9 | 285 |
CSS | 1 | 0 | 0 | 7 |
JavaScript | 1 | 3 | 1 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
PNG images were not found in this plugin