Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼10.79ms] Passed 4 tests
This is a short check of server-side resources used by WPSS Cookies
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.56 ▼10.03 |
Dashboard /wp-admin | 3.41 ▲0.06 | 50.57 ▼9.77 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.04 ▼19.67 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 101.56 ▼1.92 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.37 ▼3.70 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wpss_cookie_life |
widget_recent-posts |
wpss_cookie_name |
widget_theysaidso_widget |
wpss_cookie_message |
widget_recent-comments |
wpss_message_position |
wpss_show_cookie_message |
db_upgraded |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WPSS Cookies
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲90 | 13.66 ▼0.71 | 4.57 ▲2.56 | 42.69 ▼3.39 |
Dashboard /wp-admin | 2,229 ▲26 | 5.86 ▲0.99 | 100.74 ▼0.65 | 81.21 ▲39.50 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.03 ▼0.00 | 36.18 ▼5.34 | 34.48 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,689 ▲155 | 22.33 ▼0.95 | 715.92 ▲1.51 | 55.89 ▼1.02 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.23 ▼0.01 | 102.72 ▼4.76 | 73.32 ▲25.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpss-cookies/wpss_cookies.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- License uri: Invalid url: "/LICENCE"
- Screenshots: Please describe screenshot #0 in wpss-cookies/assets to your readme.txt
wpss-cookies/wpss_cookies.php 85% from 13 tests
"WPSS Cookies" version 1.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("5.2" instead of "5.5")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpss-cookies.php" instead of "wpss_cookies.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin635 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 40 | 160 | 291 |
CSS | 2 | 27 | 21 | 236 |
PO File | 1 | 20 | 22 | 68 |
JavaScript | 2 | 0 | 6 | 37 |
Markdown | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 28 | |
▷ Static methods | 5 | 17.86% |
▷ Public methods | 28 | 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 | 3 | |
▷ Global constants | 3 | 100.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
14 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/facebook.png | 0.50KB | 0.38KB | ▼ 24.51% |
assets/images/buttons_style.fw.png | 77.00KB | 6.72KB | ▼ 91.27% |
assets/images/github.png | 0.40KB | 0.32KB | ▼ 21.17% |
assets/images/forest_op.png | 2.60KB | 0.94KB | ▼ 63.69% |
assets/images/load.png | 8.18KB | 0.44KB | ▼ 94.63% |