Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.06ms] Passed 4 tests
Analyzing server-side resources used by Easy Cookie Law
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.74 ▼0.86 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.98 ▼2.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.56 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 100.64 ▲5.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.10 ▲3.68 |
Easy Cookie Law /wp-admin/options-general.php?page=ecl_menu | 3.22 | 31.84 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Easy Cookie Law: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲36 | 13.32 ▼1.09 | 2.54 ▲0.45 | 43.12 ▼9.57 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▲0.94 | 108.10 ▲3.33 | 40.30 ▼1.96 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.00 | 38.41 ▲0.38 | 35.88 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 22.74 ▲5.23 | 640.20 ▼52.14 | 53.59 ▲0.83 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.00 | 101.75 ▲1.16 | 42.42 ▼4.39 |
Easy Cookie Law /wp-admin/options-general.php?page=ecl_menu | 1,114 | 2.04 | 22.89 | 48.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Easy Cookie Law Options Menu) image missing
easy-cookie-law/easy-cookie-law.php Passed 13 tests
Analyzing the main PHP file in "Easy Cookie Law" version 3.1
56 characters long description:
Minimal code to help your website respect the cookie law
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 detected831 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 76 | 132 | 595 |
PO File | 1 | 46 | 47 | 167 |
CSS | 1 | 10 | 0 | 59 |
JavaScript | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 37.50% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
There are no PNG files in this plugin