Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.76ms] Passed 4 tests
This is a short check of server-side resources used by reCaptcha Protected Downloads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.79 ▼6.67 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.91 ▼14.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.91 ▲6.28 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.03 ▼22.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.80 ▲0.57 |
reCaptcha Downloads /wp-admin/options-general.php?page=rcpdl | 3.20 | 29.73 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for reCaptcha Protected Downloads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.39 ▲0.22 | 1.97 ▲0.18 | 39.11 ▼3.05 |
Dashboard /wp-admin | 2,202 ▲27 | 5.65 ▲0.00 | 82.25 ▼19.23 | 38.74 ▼4.73 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.03 | 34.35 ▼5.53 | 31.07 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 18.21 ▼4.99 | 625.17 ▲28.99 | 77.36 ▲23.98 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.34 ▲0.14 | 101.55 ▲4.52 | 42.55 ▼1.31 |
reCaptcha Downloads /wp-admin/options-general.php?page=rcpdl | 1,187 | 2.00 | 23.19 | 27.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/recaptcha-protected-downloads/recaptcha-protected-downloads.php
- > /wp-content/plugins/recaptcha-protected-downloads/uninstall.php
- > /wp-content/plugins/recaptcha-protected-downloads/Inc/Admin/Admin.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/recaptcha-protected-downloads/Inc/Lib/recaptcha/src/ReCaptcha/RequestMethod/Post.php:35
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/recaptcha-protected-downloads/Inc/Lib/recaptcha/src/ReCaptcha/RequestMethod/SocketPost.php:37
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/recaptcha-protected-downloads/Inc/Lib/recaptcha/src/ReCaptcha/RequestMethod/CurlPost.php:37
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
recaptcha-protected-downloads/recaptcha-protected-downloads.php 92% from 13 tests
The main file in "reCaptcha Protected Downloads" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin1,031 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 190 | 502 | 744 |
JavaScript | 1 | 37 | 1 | 161 |
Markdown | 2 | 42 | 0 | 108 |
YAML | 1 | 4 | 0 | 14 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 18 | 42.86% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin