Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼143.77ms] Passed 4 tests
Server-side resources used by Yummy Cookies
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.13 | 50.05 ▲27.56 |
Dashboard /wp-admin | 3.07 ▲0.01 | 49.72 ▲4.26 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.56 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 92.66 ▼570.84 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 26.42 ▼7.52 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Yummy Cookies
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲124 | 16.21 ▲0.89 | 8.65 ▼1.01 | 46.50 ▼6.44 |
Dashboard /wp-admin | 3,011 ▲77 | 5.93 ▼0.07 | 167.42 ▲12.68 | 129.32 ▲20.92 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.86 ▲0.14 | 71.52 ▼12.16 | 92.43 ▲5.42 |
Add New Post /wp-admin/post-new.php | 1,520 ▼163 | 18.49 ▼0.17 | 397.81 ▼5.16 | 107.87 ▲0.85 |
Media Library /wp-admin/upload.php | 1,842 ▲32 | 5.03 ▼0.00 | 149.48 ▼6.68 | 121.49 ▲0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/yummy-cookies/public/class-yummy-cookies-elementor-cookie-value.php:11
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/yummy-cookies/public/class-yummy-cookies-elementor-cookie-name.php:11
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== yummy-cookies ===
)
yummy-cookies/yummy-cookies.php 92% from 13 tests
"Yummy Cookies" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Git Repository: A Git repository was detected inside this plugin
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
Good job! No executable or dangerous file extensions detected491 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 118 | 541 | 283 |
XML | 1 | 14 | 9 | 92 |
JSON | 3 | 0 | 0 | 89 |
YAML | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 2 | 6.67% |
▷ Private methods | 4 | 13.33% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin