Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.04MB] [CPU: ▲25.71ms] 75% from 4 tests
A check of server-side resources used by Cozy Addons for Elementor - Header and Footer builder for Elementor, Layout and Widgets for WooCommerce, Magazine, slider, blog and more.
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.90 ▲5.43 | 61.68 ▲23.50 |
Dashboard /wp-admin | 8.92 ▲5.61 | 70.71 ▲23.38 |
Posts /wp-admin/edit.php | 8.92 ▲5.56 | 71.83 ▲25.43 |
Add New Post /wp-admin/post-new.php | 9.45 ▲3.56 | 116.82 ▲30.51 |
Media Library /wp-admin/upload.php | 8.92 ▲5.69 | 77.20 ▲42.20 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.92 | 63.07 |
Server storage [IO: ▲6.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 319 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
fs_accounts |
db_upgraded |
fs_active_plugins |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cozy Addons for Elementor - Header and Footer builder for Elementor, Layout and Widgets for WooCommerce, Magazine, slider, blog and more.
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 14.36 ▼0.21 | 1.63 ▼0.12 | 27.31 ▼19.62 |
Dashboard /wp-admin | 2,289 ▲112 | 5.58 ▼0.09 | 83.89 ▼15.90 | 94.07 ▲52.08 |
Posts /wp-admin/edit.php | 2,198 ▲98 | 2.15 ▲0.18 | 37.98 ▲1.48 | 39.39 ▲3.38 |
Add New Post /wp-admin/post-new.php | 1,761 ▲233 | 21.09 ▼2.09 | 750.51 ▲103.74 | 56.79 ▲10.17 |
Media Library /wp-admin/upload.php | 1,497 ▲97 | 4.20 ▼0.01 | 108.60 ▲6.69 | 81.98 ▲37.07 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,100 | 1.66 | 24.19 | 27.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/cozy-addons/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- widget_theysaidso_widget
- fs_debug_mode
- db_upgraded
- widget_recent-comments
- fs_active_plugins
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% 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 fix the following
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cozy-addons/public/widgets/flip-box/flip-box.php
- > /wp-content/plugins/cozy-addons/public/widgets/authorbox/author-box.php
- > /wp-content/plugins/cozy-addons/admin/partials/cozy-addons-admin-display.php
- > /wp-content/plugins/cozy-addons/public/partials/cozy-addons-public-display.php
- > /wp-content/plugins/cozy-addons/public/widgets/working-hour/working-hour.php
- > /wp-content/plugins/cozy-addons/public/widgets/buttons-group/multi-buttons.php
- > /wp-content/plugins/cozy-addons/public/widgets/site-logo/site-logo.php
- > /wp-content/plugins/cozy-addons/public/widgets/price-list/price-list.php
- 158× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant COZY_ADDONS_PLUGIN_DIR - assumed 'COZY_ADDONS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cozy-addons/public/widgets/posts/focus-post-layout.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'COZY_ADDONS_PLUGIN_DIRpublic/partials/partial-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/cozy-addons/public/widgets/popular-post/popular-post-layout.php on line 2
- > PHP Notice
Undefined variable: settings in wp-content/plugins/cozy-addons/public/widgets/pricing-tables/pricing-table.php on line 59
- > PHP Warning
Use of undefined constant COZY_ADDONS_PLUGIN_DIR - assumed 'COZY_ADDONS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cozy-addons/public/widgets/posts/advanced-magblock-layout.php on line 2
- > PHP Warning
Use of undefined constant COZY_ADDONS_PLUGIN_DIR - assumed 'COZY_ADDONS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cozy-addons/public/widgets/portfolio/portfolio-layout.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cozy-addons/public/widgets/pricing-tables/pricing-table.php on line 40
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cozy-addons/public/widgets/pricing-tables/pricing-table.php on line 66
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cozy-addons/public/widgets/hover-box/hover-box.php on line 3
- > PHP Notice
Undefined variable: settings in wp-content/plugins/cozy-addons/public/widgets/flip-box/flip-box.php on line 7
- > PHP Notice
Undefined variable: settings in wp-content/plugins/cozy-addons/public/widgets/travel-list/travel-list.php on line 2
- > PHP Warning
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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 36 tag instead of maximum 10
cozy-addons/cozy-addons.php 92% from 13 tests
The principal PHP file in "Cozy Addons for Elementor - Header and Footer builder for Elementor, Layout and Widgets for WooCommerce, Magazine, slider, blog and more." v. 1.2.10 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin115,830 lines of code in 260 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 12,183 | 20,119 | 100,165 |
JavaScript | 11 | 1,830 | 354 | 10,808 |
CSS | 18 | 92 | 240 | 4,538 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 11 | 0 | 0 | 89 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 45.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 107 | |
▷ Abstract classes | 2 | 1.87% |
▷ Concrete classes | 105 | 98.13% |
▷ Final classes | 1 | 0.95% |
Methods | 1,990 | |
▷ Static methods | 201 | 10.10% |
▷ Public methods | 1,152 | 57.89% |
▷ Protected methods | 107 | 5.38% |
▷ Private methods | 731 | 36.73% |
Functions | 148 | |
▷ Named functions | 147 | 99.32% |
▷ Anonymous functions | 1 | 0.68% |
Constants | 151 | |
▷ Global constants | 101 | 66.89% |
▷ Class constants | 50 | 33.11% |
▷ Public constants | 50 | 100.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
9 PNG files occupy 0.22MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/cozy_addons_hero.png | 94.12KB | 102.52KB | 0.00% |
admin/ct-companions/images/ct_patternberg-min.png | 29.19KB | 16.38KB | ▼ 43.91% |
admin/ct-companions/images/ct_fotawp_screen-min.png | 53.99KB | 54.04KB | 0.00% |
admin/ct-companions/images/ct_cozy_addons.png | 19.33KB | 9.09KB | ▼ 52.96% |
admin/images/cozy_addons_logo.png | 2.19KB | 2.34KB | 0.00% |