Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼145.92ms] Passed 4 tests
A check of server-side resources used by EU Cookie Policy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.19 | 34.26 ▲8.91 |
Dashboard /wp-admin | 3.24 ▲0.18 | 43.96 ▲0.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.24 | 45.62 ▼6.99 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.16 | 90.03 ▼575.40 |
Media Library /wp-admin/upload.php | 3.19 ▲0.18 | 33.29 ▼1.69 |
EU Cookie Policy /wp-admin/options-general.php?page=ecp | 3.16 | 25.12 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 4 new options
New WordPress options |
---|
ecp_content_settings |
ecp_styles_settings |
ecp_options_settings |
ecp_more_info_page |
Browser metrics Passed 4 tests
An overview of browser requirements for EU Cookie Policy
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,871 ▲234 | 16.62 ▲0.90 | 15.42 ▲6.02 | 46.74 ▼7.02 |
Dashboard /wp-admin | 3,005 ▲74 | 6.55 ▲0.48 | 132.28 ▼21.03 | 108.61 ▼10.12 |
Posts /wp-admin/edit.php | 2,771 ▲32 | 2.76 ▲0.04 | 62.89 ▼2.58 | 92.54 ▼57.96 |
Add New Post /wp-admin/post-new.php | 1,692 ▲9 | 18.96 ▲0.43 | 376.59 ▼8.26 | 124.35 ▲12.77 |
Media Library /wp-admin/upload.php | 1,839 ▲32 | 5.18 ▲0.15 | 139.66 ▼13.09 | 121.42 ▲8.42 |
EU Cookie Policy /wp-admin/options-general.php?page=ecp | 1,276 | 2.58 | 55.95 | 85.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 4 options in the database
- ecp_more_info_page
- ecp_options_settings
- ecp_content_settings
- ecp_styles_settings
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: cookie notification, cookie policy, cookie privacy, cookie compliance, cookie law...
eu-cookie-policy/eu-cookie-policy.php Passed 13 tests
"EU Cookie Policy" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
EU Cookie Policy plugin to make easier to display cookie policy on website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,535 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 187 | 43 | 1,276 |
CSS | 2 | 0 | 0 | 221 |
JavaScript | 1 | 0 | 4 | 38 |
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.25 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 59 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin