Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.17MB] [CPU: ▼14.18ms] Passed 4 tests
Server-side resources used by root Cookie
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.11 ▼6.80 |
Dashboard /wp-admin | 3.19 ▼0.12 | 34.68 ▼10.30 |
Posts /wp-admin/edit.php | 3.25 ▼0.10 | 34.16 ▼21.20 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.44 | 76.97 ▼18.41 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 31.93 ▼2.25 |
root Cookie /wp-admin/options-general.php?page=root-cookie | 3.16 | 29.01 |
Server storage [IO: ▲0.15MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
rootcookie_subdomain |
can_compress_scripts |
Browser metrics Passed 4 tests
root Cookie: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.43 | 1.64 ▼0.43 | 41.23 ▼6.25 |
Dashboard /wp-admin | 2,210 ▲21 | 5.87 ▲0.94 | 106.18 ▼23.00 | 42.30 ▲0.28 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▼0.01 | 41.06 ▼3.42 | 34.05 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,517 ▼20 | 17.78 ▼5.29 | 625.47 ▼17.32 | 66.55 ▲4.57 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.04 | 100.49 ▼1.42 | 45.74 ▲3.23 |
root Cookie /wp-admin/options-general.php?page=root-cookie | 954 | 2.14 | 29.08 | 36.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- rootcookie_subdomain
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=root-cookie
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/options-general.php?page=root-cookie
- > Notice in wp-content/plugins/root-cookie/root-cookie.php+236
Undefined index: rootcookie_submit_hidden
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/root-cookie/admin-options-help.inc.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/root-cookie/root-cookie.php:349
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Screenshots: Screenshot #1 (The Admin interface, optional for if you want to change the domain.) image required
- Plugin Name: Please specify the plugin name on the first line (
=== root-cookie ===
)
root-cookie/root-cookie.php Passed 13 tests
The main PHP file in "root Cookie" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
128 characters long description:
Changes the cookie default path to / (i.e. the whole domain.com not just domain.com/blog) with an option to go across subdomains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin255 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 51 | 255 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 6 | |
▷ Named functions | 6 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 124.15KB | 31.13KB | ▼ 74.92% |
donate.png | 10.26KB | 4.27KB | ▼ 58.36% |