Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.64ms] Passed 4 tests
A check of server-side resources used by WP Cookie Tool
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.96 ▼1.12 |
Dashboard /wp-admin | 3.38 ▲0.04 | 42.61 ▼19.76 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 43.20 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 79.61 ▼17.03 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 35.03 ▲0.95 |
WP Cookie Tool /wp-admin/options-general.php?page=wp_cookie_tool_options_page | 3.27 | 30.41 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Cookie Tool
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.20 ▼1.17 | 2.66 ▲0.95 | 37.53 ▼4.33 |
Dashboard /wp-admin | 2,204 ▲12 | 5.83 ▲0.88 | 106.04 ▲2.11 | 38.51 ▼8.25 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.02 | 38.39 ▲0.33 | 37.68 ▲3.80 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.39 ▲5.88 | 683.95 ▲12.58 | 56.56 ▲2.78 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.06 | 94.55 ▼11.86 | 41.49 ▼5.30 |
WP Cookie Tool /wp-admin/options-general.php?page=wp_cookie_tool_options_page | 927 | 2.03 | 22.16 | 33.36 |
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
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-cookie-tool/wp-cookietool.php:40
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: privacy, cookie, eu
wp-cookie-tool/wp-cookietool.php 92% from 13 tests
"WP Cookie Tool" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-cookie-tool.php" instead of "wp-cookietool.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin640 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 52 | 93 | 293 |
JavaScript | 1 | 24 | 100 | 232 |
PO File | 1 | 36 | 36 | 86 |
CSS | 1 | 5 | 0 | 28 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected