Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.57MB] [CPU: ▲5.09ms] Passed 4 tests
Server-side resources used by WP Consent Receipt
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.03 ▲1.57 | 50.28 ▲9.96 |
Dashboard /wp-admin | 4.87 ▲1.57 | 59.20 ▲11.80 |
Posts /wp-admin/edit.php | 4.92 ▲1.57 | 50.66 ▲1.52 |
Add New Post /wp-admin/post-new.php | 7.45 ▲1.57 | 91.37 ▲1.70 |
Media Library /wp-admin/upload.php | 4.79 ▲1.57 | 40.86 ▲7.16 |
WP Consent Receipt /wp-admin/options-general.php?page=wp_consent_receipt | 4.76 | 36.58 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 121 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Consent Receipt
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 13.38 ▼1.10 | 2.52 ▲0.85 | 46.70 ▲5.05 |
Dashboard /wp-admin | 2,210 ▲19 | 5.80 ▲0.92 | 95.44 ▼2.43 | 38.37 ▼3.50 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▼0.09 | 33.27 ▼7.95 | 32.63 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 22.08 ▲3.59 | 689.53 ▲82.88 | 57.37 ▲1.39 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.03 | 94.30 ▼2.22 | 40.33 ▼3.20 |
WP Consent Receipt /wp-admin/options-general.php?page=wp_consent_receipt | 802 | 2.07 | 23.93 | 30.73 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-consent-receipt/php-jwt/tests/bootstrap.php
- > /wp-content/plugins/wp-consent-receipt/phpseclib/tests/bootstrap.php
- 52× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpseclibFunctionalTestCase' not found in wp-content/plugins/wp-consent-receipt/phpseclib/tests/Functional/Net/SSH2AgentTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Sami\\Store\\ArrayStore' not found in wp-content/plugins/wp-consent-receipt/phpseclib/build/sami.conf.php:4
- > PHP Fatal error
Uncaught Error: Class 'PhpseclibTestCase' not found in wp-content/plugins/wp-consent-receipt/phpseclib/tests/Unit/Crypt/RSA/LoadKeyTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PhpseclibTestCase' not found in wp-content/plugins/wp-consent-receipt/phpseclib/tests/Unit/Crypt/BlowfishTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PhpseclibTestCase' not found in wp-content/plugins/wp-consent-receipt/phpseclib/tests/Unit/Math/BigInteger/TestCase.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-consent-receipt/templates/settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\RSA\\PKCS' not found in wp-content/plugins/wp-consent-receipt/phpseclib/phpseclib/Crypt/RSA/PKCS1.php:39
- > PHP Fatal error
Uncaught Error: Class 'PhpseclibTestCase' not found in wp-content/plugins/wp-consent-receipt/phpseclib/tests/Unit/Net/SSH1Test.php:8
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-consent-receipt/phpseclib/phpseclib/Crypt/Blowfish.php:50
- > PHP Fatal error
Uncaught Error: Class 'PhpseclibFunctionalTestCase' not found in wp-content/plugins/wp-consent-receipt/phpseclib/tests/Functional/Net/SSH2Test.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("")
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-consent-receipt ===
) - Screenshots: Screenshot #1 (Receipt) image required
wp-consent-receipt/wp-consent-receipt.php Passed 13 tests
"WP Consent Receipt" version 0.28's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Consent Receipt Plugin for WordPress
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected23,531 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 83 | 4,051 | 12,420 | 22,646 |
Markdown | 4 | 84 | 0 | 324 |
PO File | 3 | 50 | 51 | 158 |
XML | 5 | 16 | 13 | 139 |
Bourne Shell | 6 | 25 | 38 | 125 |
JSON | 2 | 0 | 0 | 100 |
Ant | 1 | 4 | 2 | 26 |
JavaScript | 1 | 5 | 0 | 7 |
CSS | 1 | 1 | 0 | 6 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 40.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 550.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 80 | |
▷ Abstract classes | 7 | 8.75% |
▷ Concrete classes | 73 | 91.25% |
▷ Final classes | 0 | 0.00% |
Methods | 864 | |
▷ Static methods | 71 | 8.22% |
▷ Public methods | 835 | 96.64% |
▷ Protected methods | 13 | 1.50% |
▷ Private methods | 16 | 1.85% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 174 | |
▷ Global constants | 17 | 9.77% |
▷ Class constants | 157 | 90.23% |
▷ Public constants | 157 | 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
PNG images were not found in this plugin