Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Parse error in wp-content/plugins/multimediamonster-cookie-law-authorization/classes/class-mmm-cla-settings.php+738
syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST)
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.33ms] Passed 4 tests
Analyzing server-side resources used by Cookie Law Authorization
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.06 ▼8.94 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.17 ▼11.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.82 ▲0.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.06 ▼9.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.18 ▲2.35 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 281 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Cookie Law Authorization: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.48 ▲0.11 | 2.02 ▲0.25 | 44.72 ▲1.75 |
Dashboard /wp-admin | 2,203 ▲27 | 5.76 ▼0.14 | 100.92 ▼14.89 | 41.40 ▼4.38 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▼0.05 | 40.23 ▲3.75 | 34.42 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.64 ▼5.92 | 651.43 ▲7.65 | 50.70 ▼0.53 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.17 ▼0.05 | 99.81 ▼2.35 | 44.40 ▼1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/multimediamonster-cookie-law-authorization/classes/class-mmm-cla-frontend-widget.php on line 132
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/multimediamonster-cookie-law-authorization/multimediamonster-cookie-law-authorization.php:28
- > PHP Parse error
syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/multimediamonster-cookie-law-authorization/classes/class-mmm-cla-settings.php on line 738
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/multimediamonster-cookie-law-authorization/classes/class-mmm-cla-admin-pages.php on line 101
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: cookie law, cookie levels, cookies
multimediamonster-cookie-law-authorization/multimediamonster-cookie-law-authorization.php 92% from 13 tests
The main PHP script in "Cookie Law Authorization" version 1.4.4 is automatically included on every request by WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,156 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 146 | 241 | 1,886 |
JavaScript | 4 | 23 | 39 | 509 |
CSS | 3 | 9 | 62 | 491 |
PO File | 1 | 118 | 276 | 265 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 51 | 100.00% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/frontend/cookie-tool.png | 5.52KB | 2.46KB | ▼ 55.46% |
images/frontend/cookie-tool-do.png | 1.20KB | 0.45KB | ▼ 62.48% |
images/admin/copyright-bg.png | 18.33KB | 6.75KB | ▼ 63.16% |
images/admin/medium-icon.png | 6.50KB | 2.20KB | ▼ 66.20% |
images/admin/googlemaps-icon.png | 2.02KB | 1.15KB | ▼ 42.84% |