Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼146.96ms] Passed 4 tests
This is a short check of server-side resources used by FrankenCookie
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 34.35 ▲11.87 |
Dashboard /wp-admin | 3.10 ▲0.04 | 39.26 ▼7.54 |
Posts /wp-admin/edit.php | 3.15 ▲0.03 | 36.40 ▼16.23 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.55 ▼562.80 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 32.64 ▼1.28 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_frankencookie |
Browser metrics Passed 4 tests
Checking browser requirements for FrankenCookie
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲41 | 15.87 ▲0.27 | 7.35 ▼1.22 | 49.38 ▲3.31 |
Dashboard /wp-admin | 2,973 ▲39 | 5.87 ▼0.08 | 138.84 ▼8.12 | 120.97 ▲0.97 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.69 ▼0.00 | 63.94 ▼1.73 | 89.50 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,683 ▲179 | 18.81 ▲0.27 | 381.12 ▲5.60 | 110.84 ▼2.80 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.00 ▼0.00 | 147.78 ▲1.68 | 119.85 ▼3.34 |
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
- The uninstall procedure has failed, leaving 1 option in the database
- widget_frankencookie
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/frankencookie/frankencookie.php:32
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/frankencookie/class-frankencookie-widget.php:25
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (FrankenCookie Widget Settings), #2 (Example FrankenCookie Widget Appearance)
frankencookie/frankencookie.php Passed 13 tests
The main PHP file in "FrankenCookie" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
113 characters long description:
FrankenCookie provides a widget that offers visitors an explanation about cookies being placed on their computer.
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 plugin172 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 91 | 172 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 4 | 50.00% |
▷ Public methods | 8 | 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 | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 24.00KB | 9.34KB | ▼ 61.07% |
screenshot-2.png | 67.51KB | 28.16KB | ▼ 58.28% |