Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.08MB] [CPU: ▼185.13ms] Passed 4 tests
Analyzing server-side resources used by Uhmi
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.01 | 31.27 ▼10.20 |
Dashboard /wp-admin | 3.03 ▼0.03 | 33.12 ▼19.56 |
Posts /wp-admin/edit.php | 3.09 ▼0.02 | 39.54 ▼11.30 |
Add New Post /wp-admin/post-new.php | 5.15 ▼0.28 | 84.36 ▼699.44 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 29.78 ▼5.11 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 1 new option
New WordPress options |
---|
uhmi_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Uhmi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲196 | 16.40 ▲0.78 | 12.04 ▼0.78 | 48.12 ▼3.56 |
Dashboard /wp-admin | 3,032 ▲101 | 7.09 ▲1.12 | 160.28 ▼1.16 | 123.80 ▲13.73 |
Posts /wp-admin/edit.php | 2,807 ▲68 | 2.56 ▼0.15 | 81.40 ▲4.90 | 127.80 ▲39.58 |
Add New Post /wp-admin/post-new.php | 1,729 ▲46 | 18.21 ▼0.16 | 436.70 ▼13.30 | 136.01 ▲17.09 |
Media Library /wp-admin/upload.php | 1,872 ▲65 | 5.51 ▲0.50 | 155.78 ▼24.56 | 134.79 ▲11.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 117× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include(): Failed opening 'UHMI_PLUGIN_DIR_ADMIN/metaboxes/content_data/get_meta.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/uhmi/app/admin/metaboxes/content_data.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/uhmi/app/admin/views/settings/button.php:1
- > PHP Warning
include(UHMI_PLUGIN_DIR_ADMIN/register_shortcodes.php): failed to open stream: No such file or directory in wp-content/plugins/uhmi/app/admin/admin.php on line 9
- > PHP Warning
Use of undefined constant UHMI_PLUGIN_DIR_ADMIN - assumed 'UHMI_PLUGIN_DIR_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/uhmi/app/admin/admin.php on line 4
- > PHP Warning
Use of undefined constant UHMI_PLUGIN_DIR_ADMIN - assumed 'UHMI_PLUGIN_DIR_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/uhmi/app/admin/admin.php on line 23
- > PHP Warning
include(UHMI_PLUGIN_DIR_ADMIN/blank_state.php): failed to open stream: No such file or directory in wp-content/plugins/uhmi/app/admin/admin.php on line 18
- > PHP Warning
include(UHMI_PLUGIN_DIR_PUBLIC/shortcodes/uhmi.php): failed to open stream: No such file or directory in wp-content/plugins/uhmi/app/public/public.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uhmi/app/admin/get_started.php:57
- > PHP Warning
include(): Failed opening 'UHMI_PLUGIN_DIR_ADMIN/settings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/uhmi/app/admin/admin.php on line 19
- > PHP Warning
Use of undefined constant UHMI_PLUGIN_DIR - assumed 'UHMI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/uhmi/app/public/public.php on line 10
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #3 in uhmi/assets to your readme.txt
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
uhmi/uhmi.php 92% from 13 tests
This is the main PHP file of "Uhmi" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 242 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,126 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 769 | 939 | 2,117 |
JavaScript | 4 | 0 | 0 | 4 |
CSS | 2 | 0 | 0 | 2 |
JSON | 2 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 25 | 40.32% |
▷ Public methods | 47 | 75.81% |
▷ Protected methods | 15 | 24.19% |
▷ Private methods | 0 | 0.00% |
Functions | 80 | |
▷ Named functions | 78 | 97.50% |
▷ Anonymous functions | 2 | 2.50% |
Constants | 20 | |
▷ Global constants | 10 | 50.00% |
▷ Class constants | 10 | 50.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin