Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.54ms] Passed 4 tests
An overview of server-side resources used by Cookies CK
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.32 ▼6.53 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.46 ▼10.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.74 ▲1.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.34 ▼13.13 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.35 ▲0.15 |
Cookies CK /wp-admin/options-general.php?page=cookies-ck | 3.19 | 34.85 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
cookies-ck_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookies CK
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲190 | 13.44 ▼0.97 | 9.87 ▲8.05 | 41.85 ▼2.34 |
Dashboard /wp-admin | 2,199 ▲22 | 5.66 ▼0.03 | 97.14 ▲5.56 | 42.20 ▼1.53 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.01 | 37.14 ▼3.01 | 29.46 ▼4.87 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.16 ▼0.08 | 660.24 ▼11.41 | 54.68 ▲2.24 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.25 ▲0.01 | 100.97 ▼2.03 | 42.68 ▼1.06 |
Cookies CK /wp-admin/options-general.php?page=cookies-ck | 876 | 2.02 | 35.73 | 51.54 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- cookies-ck_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: slideshow, image, carousel, diaporama
cookies-ck/cookies-ck.php Passed 13 tests
The main PHP script in "Cookies CK" version 1.1.0 is automatically included on every request by WordPress
78 characters long description:
Cookies CK creates a popup to inform the visitor that the website uses cookies
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin637 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 49 | 35 | 382 |
PHP | 1 | 31 | 28 | 203 |
PO File | 1 | 102 | 215 | 51 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/link.png | 0.33KB | 0.42KB | 0.00% |
images/text_signature.png | 0.51KB | 0.51KB | 0.00% |
images/logo_cookiesck_64.png | 4.09KB | 2.91KB | ▼ 28.71% |