Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.39ms] Passed 4 tests
Analyzing server-side resources used by Simple Cookie Law
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.98 ▼0.99 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.13 ▼2.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.49 ▲3.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.50 ▼12.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.36 ▲2.76 |
Simple Cookie Law /wp-admin/options-general.php?page=simple_cookie_law | 3.21 | 30.53 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
simple_cookie_law_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Cookie Law
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 13.61 ▼0.34 | 2.38 ▲0.48 | 44.58 ▼1.15 |
Dashboard /wp-admin | 2,215 ▲24 | 4.92 ▲0.01 | 111.27 ▲1.82 | 42.71 ▼4.45 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.09 ▲0.09 | 43.47 ▲5.73 | 34.02 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,521 ▲1 | 23.16 ▲0.19 | 677.42 ▲22.80 | 72.26 ▲19.96 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.26 ▲0.06 | 99.55 ▲0.08 | 45.97 ▲2.01 |
Simple Cookie Law /wp-admin/options-general.php?page=simple_cookie_law | 1,243 | 2.48 | 44.45 | 31.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- simple_cookie_law_settings
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-cookie-law/simple-cookie-law.php:17
- > 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 90% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Contributors: The plugin tags were not defined
- Contributors: Plugin contributors not specified
simple-cookie-law/simple-cookie-law.php 92% from 13 tests
This is the main PHP file of "Simple Cookie Law" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin357 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 19 | 224 |
JavaScript | 10 | 32 | 24 | 91 |
PO File | 1 | 14 | 16 | 41 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin