Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.43ms] Passed 4 tests
Analyzing server-side resources used by Caching Compatible Cookie Opt-In and JavaScript
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.31 ▼0.26 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.47 ▼15.30 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.73 ▲3.69 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.50 ▼4.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.12 ▲2.65 |
Cookie-Optin & JS /wp-admin/tools.php?page=caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php | 3.19 | 29.63 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Caching Compatible Cookie Opt-In and JavaScript
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲180 | 13.89 ▼0.69 | 6.85 ▲4.96 | 38.04 ▼1.38 |
Dashboard /wp-admin | 2,226 ▲35 | 5.02 ▼0.88 | 103.19 ▼4.48 | 39.67 ▼1.75 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.30 ▲0.30 | 40.60 ▲3.57 | 33.92 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,531 ▼13 | 23.15 ▲5.02 | 615.96 ▲9.92 | 32.89 ▼29.27 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.52 ▲0.37 | 97.85 ▲1.97 | 43.81 ▲0.36 |
Cookie-Optin & JS /wp-admin/tools.php?page=caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php | 864 | 2.09 | 26.67 | 27.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php
- > Notice in wp-content/plugins/caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php+588
Undefined index: base
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php
- > Notice in wp-content/plugins/caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php+596
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php
- > Notice in wp-content/plugins/caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php+596
Undefined index: optin
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
caching-compatible-cookie-optin-and-javascript/caching-compatible-cookie-optin.php 77% from 13 tests
The entry point to "Caching Compatible Cookie Opt-In and JavaScript" version 0.0.10 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("caching-compatible-cookie-optin-and-javascript.php" instead of "caching-compatible-cookie-optin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin741 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 63 | 505 |
JavaScript | 2 | 45 | 51 | 159 |
CSS | 1 | 6 | 6 | 77 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 78.00 |
▷ Minimum class complexity | 78.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 42 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.70% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin