Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.71ms] Passed 4 tests
An overview of server-side resources used by cookie-cat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.86 ▼1.60 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.83 ▼14.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.59 ▼4.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.33 ▼7.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.78 ▼4.41 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for cookie-cat
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 14.14 ▼0.15 | 1.86 ▲0.16 | 42.47 ▼0.47 |
Dashboard /wp-admin | 2,202 ▲22 | 5.52 ▼0.10 | 89.12 ▲5.50 | 42.84 ▲2.06 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.01 | 33.54 ▼2.23 | 36.10 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 22.91 ▼0.11 | 633.19 ▼35.21 | 65.50 ▲7.56 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.16 ▼0.13 | 93.70 ▼17.67 | 42.13 ▼4.01 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-cat/cookie-cat.php:103
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (cookie-cat options section), #2 (XML feed section: showing the XML files being used), #3 (Cookie catalog - the "current" output from the [cookie] shortcode), #4 (Example showing selected cookies and plugins), #5 (cookie-cat.co.uk Mapping page - the source of the data), #6 (cookie cat Warning that data is passed to the cookie-cat server)
cookie-cat/cookie-cat.php Passed 13 tests
"cookie-cat" version 1.4.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
[cookies] shortcode for producing a table of cookies the website uses
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin947 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 117 | 433 | 660 |
XML | 1 | 3 | 0 | 287 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 60 | |
▷ Named functions | 60 | 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
6 PNG files occupy 0.30MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 193.26KB | 75.26KB | ▼ 61.06% |
screenshot-3.png | 29.76KB | 13.49KB | ▼ 54.66% |
screenshot-4.png | 23.89KB | 11.41KB | ▼ 52.24% |
screenshot-1.png | 26.12KB | 12.84KB | ▼ 50.85% |
screenshot-6.png | 12.67KB | 6.96KB | ▼ 45.07% |