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 gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼145.88ms] Passed 4 tests
This is a short check of server-side resources used by Unyson
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.29 | 1,373.36 ▲1,344.34 |
Dashboard /wp-admin | 3.43 ▲0.36 | 38.44 ▼3.04 |
Posts /wp-admin/edit.php | 3.49 ▲0.38 | 39.29 ▲6.48 |
Add New Post /wp-admin/post-new.php | 5.79 ▲0.35 | 75.35 ▼590.62 |
Media Library /wp-admin/upload.php | 3.37 ▲0.37 | 33.57 ▲3.65 |
New /wp-admin/admin.php?page=fw-new | 3.39 | 26.45 |
Unyson /wp-admin/admin.php?page=fw-extensions | 3.54 | 34.40 |
Server storage [IO: ▲9.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 416 new files
Database: no new tables, 1 new option
New WordPress options |
---|
fw_active_extensions |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Unyson
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,748 ▲147 | 15.97 ▲0.23 | 8.51 ▲2.96 | 78.65 ▼0.45 |
Dashboard /wp-admin | 3,013 ▲118 | 6.18 ▼0.02 | 117.19 ▼15.01 | 169.18 ▼11.42 |
Posts /wp-admin/edit.php | 2,814 ▲71 | 3.25 ▲0.01 | 65.37 ▲0.27 | 143.77 ▲1.76 |
Add New Post /wp-admin/post-new.php | 2,393 ▼1,348 | 15.90 ▼2.79 | 445.53 ▼11.98 | 178.41 ▼10.41 |
Media Library /wp-admin/upload.php | 1,824 ▲72 | 5.60 ▲0.12 | 144.08 ▼10.01 | 187.18 ▼7.20 |
New /wp-admin/admin.php?page=fw-new | 1,517 | 7.04 | 257.97 | 271.27 |
Unyson /wp-admin/admin.php?page=fw-extensions | 2,558 | 5.18 | 98.38 | 151.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- fw_active_extensions
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 140× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/unyson/framework/helpers/meta.php
- > /wp-content/plugins/unyson/framework/helpers/exceptions/class-fw-form-invalid-submission-exception.php
- > /wp-content/plugins/unyson/framework/helpers/class-fw-wp-option.php
- > /wp-content/plugins/unyson/framework/includes/option-storage/class--fw-option-storage-type-register.php
- > /wp-content/plugins/unyson/framework/includes/container-types/box/class-fw-container-type-box.php
- > /wp-content/plugins/unyson/framework/includes/option-types/background-image/view.php
- > /wp-content/plugins/unyson/framework/includes/option-storage/type/class-fw-option-storage-type-term-meta.php
- > /wp-content/plugins/unyson/framework/includes/container-types/tab/class-fw-container-type-tab.php
- > /wp-content/plugins/unyson/framework/helpers/type/class-fw-type.php
- > /wp-content/plugins/unyson/framework/includes/option-types/popup/views/view.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function fw() in wp-content/plugins/unyson/framework/includes/option-types/icon-v2/views/templates.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/unyson/framework/views/about.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function fw() in wp-content/plugins/unyson/framework/views/backend-option-design-empty.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #6 (Adding a new slider will let you select the Type, Population Method.), #7 (SEO settings at their finger tips without installing further plugins.)
unyson/unyson.php 92% from 13 tests
"Unyson" version 2.7.26's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected85,394 lines of code in 349 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 5,015 | 7,108 | 22,764 |
PO File | 6 | 8,014 | 13,043 | 16,788 |
JavaScript | 126 | 2,831 | 2,845 | 16,699 |
CSS | 55 | 1,262 | 381 | 12,405 |
HTML | 2 | 754 | 2 | 11,189 |
SVG | 6 | 0 | 1 | 5,444 |
Markdown | 2 | 31 | 0 | 105 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 18.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 471.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 11 | 8.59% |
▷ Concrete classes | 117 | 91.41% |
▷ Final classes | 8 | 6.84% |
Methods | 1,063 | |
▷ Static methods | 91 | 8.56% |
▷ Public methods | 565 | 53.15% |
▷ Protected methods | 374 | 35.18% |
▷ Private methods | 124 | 11.67% |
Functions | 125 | |
▷ Named functions | 125 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 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
8 PNG files occupy 0.46MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
framework/includes/option-types/icon-v2/static/img/transparent_bg.png | 17.98KB | 0.09KB | ▼ 99.50% |
framework/static/img/logo-100.png | 4.59KB | 2.91KB | ▼ 36.65% |
framework/includes/option-types/icon-v2/static/img/no-image.png | 3.61KB | 0.46KB | ▼ 87.14% |
framework/includes/option-types/icon-v2/static/img/sauron.png | 38.25KB | 9.80KB | ▼ 74.38% |
framework/core/components/extensions/manager/static/img/disabled-bg.png | 0.90KB | 0.10KB | ▼ 88.44% |