Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼3.62ms] Passed 4 tests
Analyzing server-side resources used by Unicon extensions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 41.30 ▼1.57 |
Dashboard /wp-admin | 3.74 ▲0.44 | 49.88 ▼1.04 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 48.66 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 86.93 ▼11.54 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 36.78 ▲2.63 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
widget_unicon-client-widget |
unicon_companion_flag |
widget_recent-posts |
widget_unicon-contact-widget |
widget_unicon-service-widget |
widget_recent-comments |
widget_unicon-feature-widget |
widget_unicon-team-widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Unicon extensions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.23 ▼1.15 | 1.85 ▼0.10 | 45.85 ▼1.45 |
Dashboard /wp-admin | 2,211 ▲22 | 4.90 ▼1.00 | 104.23 ▼7.08 | 37.43 ▼1.51 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.04 ▲0.04 | 36.77 ▼2.88 | 33.00 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.32 ▼0.01 | 614.06 ▼57.64 | 42.99 ▼10.49 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.21 ▲0.03 | 95.07 ▼6.99 | 43.44 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 13 options in the database
- theysaidso_admin_options
- widget_unicon-client-widget
- widget_unicon-team-widget
- widget_recent-posts
- unicon_companion_flag
- widget_unicon-ribbon-widget
- widget_unicon-feature-widget
- widget_theysaidso_widget
- db_upgraded
- widget_unicon-contact-widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/unicon-extensions/inc/demo.php:30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-feature.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-contact.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/unicon-extensions/unicon-extensions.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-ribbon.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-clients.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-team.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-service.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: clients, team members, widget, widgets
unicon-extensions/unicon-extensions.php 92% from 13 tests
The main PHP file in "Unicon extensions" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected7,168 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 164 | 32 | 5,361 |
PHP | 8 | 366 | 139 | 1,645 |
JavaScript | 1 | 66 | 26 | 126 |
CSS | 1 | 8 | 3 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 47.17 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 12.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.42MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paper-plane.png | 5.49KB | 2.55KB | ▼ 53.58% |
images/radio.png | 6.28KB | 3.07KB | ▼ 51.09% |
inc/demo/demo2/demo22.png | 203.35KB | 72.91KB | ▼ 64.15% |
images/imac.png | 3.26KB | 1.84KB | ▼ 43.59% |
images/counter.png | 16.58KB | 7.54KB | ▼ 54.51% |