Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.60ms] Passed 4 tests
Analyzing server-side resources used by Cookie Jar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.75 ▼0.92 |
Dashboard /wp-admin | 3.33 ▼0.02 | 46.74 ▼12.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.51 ▲1.96 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.09 ▼6.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.98 ▼2.15 |
Cookie Jar - settings /wp-admin/options-general.php?page=list | 3.24 | 29.75 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookie Jar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲149 | 13.36 ▼1.02 | 10.61 ▲8.85 | 43.75 ▲4.75 |
Dashboard /wp-admin | 2,204 ▲36 | 5.58 ▲0.03 | 95.69 ▲9.18 | 41.03 ▼0.32 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.05 | 36.72 ▲1.72 | 32.18 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 23.22 ▲5.29 | 581.99 ▼60.16 | 65.06 ▼10.38 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.18 ▲0.01 | 95.72 ▲1.52 | 42.36 ▼3.13 |
Cookie Jar - settings /wp-admin/options-general.php?page=list | 872 | 2.03 | 24.30 | 26.09 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=list
- > Deprecated in wp-content/plugins/cookie-jar/main_admin.php+50
The each() function is deprecated. This message will be suppressed on further calls
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/cookie-jar/main_admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/cookie-jar/main_admin.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-jar/cookie-jar.php:19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% 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
2 plugin tags: cookie, consent
cookie-jar/cookie-jar.php 92% from 13 tests
This is the main PHP file of "Cookie Jar" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin486 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 37 | 192 |
CSS | 2 | 16 | 1 | 113 |
JavaScript | 2 | 21 | 22 | 84 |
PO File | 1 | 21 | 23 | 55 |
Markdown | 2 | 29 | 0 | 42 |
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.16 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/cookies3.png | 14.63KB | 5.57KB | ▼ 61.91% |
img/cookie_jar.png | 15.03KB | 5.29KB | ▼ 64.79% |
img/cookies2.png | 13.28KB | 5.07KB | ▼ 61.82% |
img/cookies.png | 11.53KB | 4.16KB | ▼ 63.94% |