Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼0.54ms] Passed 4 tests
This is a short check of server-side resources used by TAP Cookies
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.29 ▼1.07 |
Dashboard /wp-admin | 3.61 ▲0.31 | 54.44 ▼4.84 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 54.71 ▲4.85 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 105.33 ▼0.16 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 43.18 ▲3.92 |
TAP Cookies /wp-admin/options-general.php?page=tap-cookies | 3.44 | 35.89 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
tap_cookies_list |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
tap_cookies_information_box_text |
tap_cookies_information_box_title |
tap_cookies_information_box_position |
Browser metrics Passed 4 tests
A check of browser resources used by TAP Cookies
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,031 ▲270 | 13.45 ▼0.92 | 17.42 ▲15.67 | 43.21 ▼2.08 |
Dashboard /wp-admin | 2,252 ▲75 | 5.64 ▲0.04 | 82.88 ▼15.54 | 41.29 ▼4.08 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▲0.01 | 39.11 ▲2.02 | 34.64 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.51 ▲0.37 | 666.04 ▼18.91 | 51.60 ▼14.89 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.23 ▲0.02 | 104.52 ▼2.41 | 47.21 ▲2.80 |
TAP Cookies /wp-admin/options-general.php?page=tap-cookies | 839 | 1.99 | 22.54 | 27.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tap-cookies/public/views/public.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tap-cookies/admin/views/admin.php:18
- > PHP Fatal error
Uncaught Error: Class 'PaintCloud\\WP\\Settings\\Page' not found in wp-content/plugins/tap-cookies/admin/includes/settings/options/configurations.php:7
- > PHP Fatal error
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
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: cookies, europe cookie law
tap-cookies/tap-cookies.php Passed 13 tests
The primary PHP file in "TAP Cookies" version 1.2.5 is used by WordPress to initiate all plugin functionality
54 characters long description:
Display a information message about Europe Cookies Law
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
No dangerous file extensions were detected2,434 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 440 | 576 | 1,266 |
JavaScript | 9 | 173 | 54 | 635 |
CSS | 6 | 15 | 23 | 419 |
Markdown | 1 | 54 | 0 | 114 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 7 | 8.14% |
▷ Public methods | 81 | 94.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/includes/settings/images/handle.png | 0.21KB | 0.20KB | ▼ 5.66% |