Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.61MB] [CPU: ▼3.95ms] Passed 4 tests
An overview of server-side resources used by Smart Cookie Kit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.38 ▲3.92 | 57.24 ▲11.89 |
Dashboard /wp-admin | 3.95 ▲0.64 | 54.00 ▼2.25 |
Posts /wp-admin/edit.php | 4.00 ▲0.64 | 51.08 ▼4.16 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.58 | 94.13 ▼11.35 |
Media Library /wp-admin/upload.php | 3.81 ▲0.58 | 40.02 ▲1.98 |
Logic settings /wp-admin/admin.php?page=nmod_sck_logics | 3.79 | 37.75 |
Graphic settings /wp-admin/admin.php?page=nmod_sck_graphics | 3.83 | 42.68 |
Help and support /wp-admin/admin.php?page=nmod_sck_help | 3.84 | 37.98 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- There were 1 file (0.01KB) illegally modified outside of "wp-content/plugins/smart-cookie-kit/" and "wp-content/uploads/"
- (new file) wp-content/cookie-preferences-log/.htaccess
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Cookie Kit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 14.29 ▼0.08 | 2.91 ▲0.83 | 37.10 ▼5.58 |
Dashboard /wp-admin | 2,262 ▲85 | 5.70 ▲0.12 | 89.04 ▼11.00 | 41.22 ▼3.41 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.13 ▲0.15 | 37.78 ▲2.30 | 36.51 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 23.18 ▼0.40 | 692.49 ▲26.85 | 56.26 ▲2.95 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 4.21 ▲0.05 | 98.00 ▼16.73 | 41.20 ▼7.80 |
Logic settings /wp-admin/admin.php?page=nmod_sck_logics | 1,026 | 1.87 | 26.85 | 34.78 |
Graphic settings /wp-admin/admin.php?page=nmod_sck_graphics | 2,030 | 6.84 | 133.67 | 91.45 |
Help and support /wp-admin/admin.php?page=nmod_sck_help | 1,337 | 2.29 | 50.94 | 50.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
5 plugin tags: cookie law, eprivacy, gdpr, cookie, banner
smart-cookie-kit/plugin.php 92% from 13 tests
The main PHP script in "Smart Cookie Kit" version 2.3.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("smart-cookie-kit.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,425 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,021 | 1,312 | 5,608 |
JavaScript | 2 | 157 | 49 | 795 |
CSS | 1 | 0 | 0 | 13 |
XML | 1 | 2 | 0 | 8 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 161.67 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 234.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 28 | 11.24% |
▷ Public methods | 205 | 82.33% |
▷ Protected methods | 17 | 6.83% |
▷ Private methods | 27 | 10.84% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 23 | 71.88% |
▷ Class constants | 9 | 28.12% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/info.png | 16.34KB | 1.95KB | ▼ 88.09% |