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
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼11.74ms] Passed 4 tests
A check of server-side resources used by Cookie Monster
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 42.40 ▼1.91 |
Dashboard /wp-admin | 3.41 ▲0.06 | 46.57 ▼19.38 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.39 ▼3.84 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 85.78 ▼21.84 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 36.72 ▲1.11 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Cookie Monster: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲185 | 13.85 ▼0.53 | 5.55 ▲3.59 | 42.86 ▲1.11 |
Dashboard /wp-admin | 2,236 ▲48 | 5.23 ▲0.12 | 100.51 ▼6.87 | 90.48 ▲51.79 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.32 ▲0.26 | 37.85 ▼6.64 | 35.48 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 17.59 ▼0.69 | 695.42 ▲81.77 | 37.45 ▼17.25 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.45 ▲0.25 | 88.19 ▼13.58 | 69.95 ▲25.55 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cookie-monster/admin/partials/cookie-monster-config-advanced.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cookie-monster/public/partials/cookie-monster-public-display.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cookie-monster/admin/partials/cookie-monster-config-texts.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cookie-monster/admin/partials/cookie-monster-admin-display.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cookie-monster/admin/partials/cookie-monster-config-display.php:6
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Captura de un ejemplo de frontend con Cookie Monster funcionando.)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cookie-monster/cookie-monster.php Passed 13 tests
The entry point to "Cookie Monster" version 1.2.2 is a PHP file that has certain tags in its header comment area
95 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress dashboard.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,291 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 195 | 126 | 1,430 |
PHP | 15 | 270 | 600 | 599 |
PO File | 2 | 74 | 4 | 172 |
JavaScript | 3 | 23 | 85 | 90 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/close.png | 1.03KB | 0.25KB | ▼ 75.33% |
admin/img/cookie-monster-wp-icon.png | 0.80KB | 0.84KB | 0.00% |