Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.45ms] Passed 4 tests
This is a short check of server-side resources used by Simple Cookies
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.66 ▼0.42 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.28 ▼9.11 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.94 ▲3.23 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.48 ▼9.42 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.02 ▲1.14 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simple Cookies: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲102 | 13.12 ▼1.24 | 2.19 ▲0.21 | 42.96 ▼4.69 |
Dashboard /wp-admin | 2,240 ▲49 | 5.88 ▲1.00 | 97.08 ▼9.51 | 86.77 ▲41.87 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.00 ▼0.02 | 39.48 ▲2.50 | 34.39 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,610 ▲88 | 22.96 ▼0.19 | 662.25 ▼21.02 | 53.61 ▼5.89 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.20 ▼0.01 | 101.52 ▲3.70 | 73.37 ▲30.15 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-cookies/simple-cookies.php
- > /wp-content/plugins/simple-cookies/templates/admin.php
- > /wp-content/plugins/simple-cookies/templates/helptab.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Shortcodes\\ShortcodeController' not found in wp-content/plugins/simple-cookies/inc/Shortcodes/HideCookieShortcode.php:14
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Base\\BaseController' not found in wp-content/plugins/simple-cookies/inc/Shortcodes/ShortcodeController.php:12
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Shortcodes\\ShortcodeController' not found in wp-content/plugins/simple-cookies/inc/Shortcodes/AddCookieShortcode.php:12
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Base\\BaseController' not found in wp-content/plugins/simple-cookies/inc/Api/Callbacks/AdminCallbacks.php:9
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Base\\BaseController' not found in wp-content/plugins/simple-cookies/inc/Shortcodes/AddButtonController.php:14
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Base\\BaseController' not found in wp-content/plugins/simple-cookies/inc/Pages/Dashboard.php:11
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Shortcodes\\ShortcodeController' not found in wp-content/plugins/simple-cookies/inc/Shortcodes/RemoveCookieShortcode.php:12
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Base\\BaseController' not found in wp-content/plugins/simple-cookies/inc/Base/SettingsLinks.php:9
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Base\\BaseController' not found in wp-content/plugins/simple-cookies/inc/Base/Enqueue.php:14
- > PHP Fatal error
Uncaught Error: Class 'Simple_Cookies\\Shortcodes\\ShortcodeController' not found in wp-content/plugins/simple-cookies/inc/Shortcodes/ShowCookieShortcode.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (banner-772x250.jpg), #2 (icon-128x128.png)
simple-cookies/simple-cookies.php 92% from 13 tests
The main file in "Simple Cookies" v. 1.0.3 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:
- Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,296 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 237 | 292 | 938 |
JavaScript | 7 | 15 | 36 | 209 |
Sass | 2 | 15 | 0 | 80 |
JSON | 4 | 0 | 0 | 66 |
SVG | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 68 | |
▷ Static methods | 11 | 16.18% |
▷ Public methods | 66 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.94% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin