Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼9.08ms] Passed 4 tests
An overview of server-side resources used by UX Flat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 41.72 ▲0.07 |
Dashboard /wp-admin | 3.50 ▲0.15 | 47.41 ▼15.41 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 50.29 ▲5.27 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.73 ▼25.17 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.49 ▲4.20 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 126 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
UX Flat: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲46 | 14.24 ▲0.34 | 1.79 ▼0.02 | 44.39 ▲1.05 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.12 | 89.29 ▼12.34 | 39.96 ▼5.60 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.95 ▲0.01 | 35.62 ▼4.84 | 35.45 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.00 ▼0.28 | 628.60 ▼36.80 | 59.28 ▲0.95 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.05 | 98.55 ▼5.93 | 43.80 ▼0.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ux-flat/inc/extensions/flatsome-infinite-scrollpost/templates/spinner.php
- > /wp-content/plugins/ux-flat/inc/shortcodes/commons/dashed.php
- 72× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flat/inc/builder/shortcodes/faq.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flat/inc/builder/shortcodes/ux_table.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flat/inc/builder/shortcodes/featured_box.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ux-flat/inc/shortcodes/module.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ux-flat/inc/builder/shortcodes/blog_posts.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ux-flat/inc/shortcodes/faq.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ux-flat/inc/builder/shortcodes/post_type.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ux-flat/inc/extensions/flatsome-infinite-scrollpost/templates/button.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flat/inc/builder/shortcodes/lightbox.php:3
- > PHP Notice
Undefined variable: default_text_align in wp-content/plugins/ux-flat/inc/builder/shortcodes/commons/box-styles.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: ux flatsome, element flatsome, flatux, uxf, ux flat...
ux-flat/uxflat.php 85% from 13 tests
The primary PHP file in "UX Flat" version 3.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ux-flat.php" instead of "uxflat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin16,461 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 988 | 563 | 11,535 |
CSS | 5 | 354 | 53 | 3,835 |
HTML | 15 | 28 | 0 | 465 |
SVG | 12 | 59 | 6 | 440 |
JavaScript | 5 | 18 | 12 | 127 |
PO File | 1 | 16 | 16 | 59 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 4.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.70% |
Functions | 88 | |
▷ Named functions | 77 | 87.50% |
▷ Anonymous functions | 11 | 12.50% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected