Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.87MB] [CPU: ▲44.80ms] Passed 4 tests
This is a short check of server-side resources used by Mandatly | Cookie Compliance and Consent solution
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 114.54 ▲66.28 |
Dashboard /wp-admin | 3.07 ▼0.23 | 100.81 ▲53.43 |
Posts /wp-admin/edit.php | 3.08 ▼0.28 | 102.45 ▲56.44 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.82 | 97.96 ▲3.06 |
Media Library /wp-admin/upload.php | 3.08 ▼0.16 | 112.52 ▲76.17 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 10 new options
New WordPress options |
---|
mdt_cookie_demo_status |
db_upgraded |
widget_recent-posts |
mdt_cookie_live_url |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
mdt_cookie_banner_status |
can_compress_scripts |
mdt_cookie_demo_url |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mandatly | Cookie Compliance and Consent solution
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,192 ▲446 | 13.85 ▼0.52 | 10.27 ▲8.45 | 38.23 ▼5.83 |
Dashboard /wp-admin | 2,221 ▲39 | 4.90 ▼0.03 | 100.98 ▼7.59 | 80.31 ▲36.89 |
Posts /wp-admin/edit.php | 2,107 ▲39 | 2.11 ▲0.09 | 34.59 ▼0.11 | 32.74 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,680 ▲160 | 21.28 ▼1.82 | 776.26 ▲90.32 | 56.82 ▲4.54 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.20 ▼0.02 | 95.84 ▼1.45 | 71.55 ▲26.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mandatly-cookie-compliance-and-consent-solution/admin/partials/mcc-admin-display.php:18
- > 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 on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Contributors: The plugin contributors field is not present
mandatly-cookie-compliance-and-consent-solution/mandatly-cookie-compliance-and-consent-solution.php 85% from 13 tests
The main file in "Mandatly | Cookie Compliance and Consent solution" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 detected959 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 83 | 401 | 413 |
CSS | 1 | 47 | 5 | 312 |
JavaScript | 1 | 14 | 28 | 193 |
SVG | 2 | 0 | 1 | 36 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 37 | |
▷ Global constants | 37 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/icon-info.png | 0.90KB | 0.59KB | ▼ 34.56% |
admin/assets/icon-128x128.png | 6.62KB | 3.56KB | ▼ 46.28% |
admin/assets/cookie-icon.png | 3.57KB | 1.12KB | ▼ 68.55% |
admin/assets/icon-256x256.png | 13.13KB | 6.10KB | ▼ 53.59% |
assets/icon-mandatly.png | 0.59KB | 0.61KB | 0.00% |