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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.56ms] Passed 4 tests
Server-side resources used by WP Cookie Law Info
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.41 ▼5.23 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.84 ▼2.06 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.80 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.04 ▼7.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.91 ▲1.85 |
WP Cookie Law Info /wp-admin/options-general.php?page=wp-cookie-law-settings | 3.27 | 32.69 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
wcl_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Cookie Law Info
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲233 | 14.23 ▼0.14 | 9.23 ▲7.27 | 50.29 ▲4.63 |
Dashboard /wp-admin | 2,234 ▲46 | 5.06 ▼0.84 | 106.78 ▼5.45 | 40.55 ▼3.19 |
Posts /wp-admin/edit.php | 2,119 ▲33 | 2.28 ▲0.29 | 37.60 ▲0.55 | 35.28 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.15 ▲0.01 | 656.24 ▼16.51 | 34.45 ▼19.63 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.58 ▲0.41 | 99.03 ▼6.05 | 42.09 ▼2.03 |
WP Cookie Law Info /wp-admin/options-general.php?page=wp-cookie-law-settings | 1,503 | 2.79 | 56.76 | 74.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- wcl_settings
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (23 tag instead of maximum 10)
wp-cookie-law-info/wp-cookie-law-info.php Passed 13 tests
Analyzing the main PHP file in "WP Cookie Law Info" version 1.0
51 characters long description:
A simple way to show EU Cookie Law in your website.
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 plugin497 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 20 | 26 | 261 |
CSS | 2 | 1 | 0 | 229 |
JavaScript | 2 | 0 | 1 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
There are no PNG files in this plugin