Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼2.73ms] Passed 4 tests
Analyzing server-side resources used by EU Cookie Law Compliance
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 46.73 ▲6.57 |
Dashboard /wp-admin | 3.71 ▲0.41 | 50.08 ▲1.10 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 55.78 ▲10.07 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 83.27 ▼18.13 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 35.86 ▼0.44 |
TP Cookies Law /wp-admin/options-general.php?page=tplis_cl_settings | 3.58 | 38.80 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
tplis_cl_settings |
can_compress_scripts |
tplis_cl_version |
Browser metrics Passed 4 tests
A check of browser resources used by EU Cookie Law Compliance
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,002 ▲256 | 15.00 ▲0.74 | 3.07 ▲1.44 | 42.30 ▲2.03 |
Dashboard /wp-admin | 2,372 ▲187 | 6.66 ▲0.80 | 134.56 ▲33.23 | 40.32 ▼5.27 |
Posts /wp-admin/edit.php | 2,283 ▲194 | 3.50 ▲1.50 | 50.97 ▲14.60 | 30.30 ▼6.03 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 17.71 ▼5.48 | 630.61 ▼39.17 | 36.54 ▼32.59 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.27 ▲0.05 | 81.70 ▼21.94 | 41.61 ▼3.38 |
TP Cookies Law /wp-admin/options-general.php?page=tplis_cl_settings | 2,615 | 8.02 | 195.06 | 59.84 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- tplis_cl_settings
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- tplis_cl_version
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/eu-cookie-law-compliance/includes/templates/layout-4/layout-html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/eu-cookie-law-compliance/includes/admin/settings/class-settings.php:375
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/eu-cookie-law-compliance/includes/templates/layout-2/layout-html.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/eu-cookie-law-compliance/includes/templates/layout-1/layout-html.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/eu-cookie-law-compliance/includes/templates/layout-3/layout-html.php:1
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
eu-cookie-law-compliance/tplis-cookies.php 77% from 13 tests
The main PHP file in "EU Cookie Law Compliance" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 150 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("eu-cookie-law-compliance.php" instead of "tplis-cookies.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,482 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 530 | 609 | 1,767 |
CSS | 5 | 101 | 5 | 467 |
JavaScript | 1 | 31 | 36 | 208 |
SVG | 1 | 0 | 1 | 30 |
XML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 70 | |
▷ Static methods | 11 | 15.71% |
▷ Public methods | 55 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 21.43% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin