Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.30ms] Passed 4 tests
A check of server-side resources used by ES Cookie Notice
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 24.92 ▼19.84 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.62 ▼8.79 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.16 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 96.52 ▲9.60 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.81 ▼0.61 |
ES Cookie Notice Options /wp-admin/options-general.php?page=escn_plugin_options | 3.36 | 37.97 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by ES Cookie Notice
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,029 ▲294 | 13.79 ▼0.50 | 19.88 ▲18.03 | 40.65 ▼8.18 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼0.98 | 119.46 ▲15.18 | 44.29 ▲2.00 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▲0.01 | 39.96 ▼0.55 | 35.37 ▲5.23 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 17.57 ▼0.19 | 611.04 ▼8.82 | 49.70 ▼2.56 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.25 ▲0.06 | 98.66 ▼4.00 | 42.17 ▼0.32 |
ES Cookie Notice Options /wp-admin/options-general.php?page=escn_plugin_options | 1,739 | 6.87 | 139.22 | 64.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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 everything seems fine, this is not 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/es-cookie-notice/electric-studio-cookie-notice.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/es-cookie-notice/ajax/escn-ajax.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/es-cookie-notice/admin/escn-admin.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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
3 plugin tags: cookie, eu cookie law, cookie law
es-cookie-notice/electric-studio-cookie-notice.php 85% from 13 tests
The principal PHP file in "ES Cookie Notice" v. 2.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("es-cookie-notice.php" instead of "electric-studio-cookie-notice.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 335 characters long)
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 detected809 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 50 | 210 | 452 |
CSS | 2 | 48 | 14 | 230 |
JavaScript | 1 | 9 | 24 | 127 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/es-logo.png | 7.48KB | 3.29KB | ▼ 56.03% |
images/escn-icon-sprite.png | 1.52KB | 0.63KB | ▼ 58.12% |