Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.37ms] Passed 4 tests
Server-side resources used by Mr Cookies
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.58 ▼5.42 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.53 ▲0.31 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.36 ▼5.75 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 118.58 ▲18.22 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.36 ▲1.39 |
Mr Cookies /wp-admin/options-general.php?page=mr-cookies | 3.32 | 29.75 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 19 new options
New WordPress options |
---|
mrcookies_style_custom_css |
mrcookies_style_background_color |
widget_theysaidso_widget |
mrcookies_installed |
mrcookies_style_text_color |
can_compress_scripts |
mrcookies_style_type |
widget_recent-comments |
db_upgraded |
mrcookies_legal_notice_type |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Mr Cookies
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.41 ▼0.98 | 3.47 ▲1.71 | 36.99 ▼7.01 |
Dashboard /wp-admin | 2,229 ▲38 | 5.14 ▲0.21 | 114.48 ▲16.87 | 41.50 ▲3.02 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.34 ▲0.35 | 36.98 ▼2.73 | 29.43 ▼7.38 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.38 ▲0.15 | 623.65 ▼30.26 | 33.81 ▼28.19 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.41 ▲0.23 | 92.68 ▼15.69 | 43.67 ▼4.88 |
Mr Cookies /wp-admin/options-general.php?page=mr-cookies | 1,438 | 2.67 | 65.35 | 30.45 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% 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 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mrcookies/include/backend.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mrcookies/include/frontend.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function mrcookies_text() in wp-content/plugins/mrcookies/admin/options-page.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mrcookies/mr-cookies.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mrcookies ===
)
mrcookies/mr-cookies.php 92% from 13 tests
The main file in "Mr Cookies" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("mrcookies.php" instead of "mr-cookies.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected695 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 61 | 74 | 405 |
JavaScript | 3 | 23 | 37 | 167 |
PO File | 3 | 9 | 12 | 75 |
CSS | 2 | 0 | 0 | 48 |
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.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close.png | 0.24KB | 0.20KB | ▼ 17.41% |