Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼13.89ms] Passed 4 tests
A check of server-side resources used by Cookie-Script.com
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 24.18 ▼15.56 |
Dashboard /wp-admin | 3.38 ▲0.08 | 42.68 ▼10.72 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 51.90 ▲5.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.00 ▼31.61 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.55 ▲2.33 |
Cookie-Script.com /wp-admin/options-general.php?page=cookie-script | 3.27 | 31.15 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Cookie-Script.com
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.28 ▼0.28 | 2.00 ▲0.24 | 37.09 ▼6.64 |
Dashboard /wp-admin | 2,204 ▲30 | 5.65 ▼0.02 | 95.62 ▲6.65 | 45.78 ▲0.52 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▲0.03 | 42.63 ▲5.55 | 34.67 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.18 ▼0.45 | 675.70 ▲58.70 | 52.66 ▲3.39 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.20 ▼0.10 | 98.00 ▼7.25 | 40.90 ▼2.69 |
Cookie-Script.com /wp-admin/options-general.php?page=cookie-script | 959 | 2.14 | 28.59 | 51.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method CookieScript::cookie_script_deactivation() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 errors were detected
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Requires php: Invalid plugin version format
cookie-script-com/cookie-script.php 85% from 13 tests
The principal PHP file in "Cookie-Script.com" v. 0.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("cookie-script-com.php" instead of "cookie-script.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin820 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 63 | 23 | 362 |
CSS | 2 | 35 | 2 | 174 |
PO File | 2 | 44 | 62 | 168 |
JavaScript | 2 | 16 | 1 | 67 |
SVG | 1 | 0 | 0 | 49 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin