Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼9.02ms] Passed 4 tests
Server-side resources used by UM-Plug
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 41.19 ▼4.57 |
Dashboard /wp-admin | 3.62 ▲0.31 | 36.49 ▼8.54 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 39.71 ▼7.44 |
Add New Post /wp-admin/post-new.php | 5.87 ▼0.02 | 75.36 ▼15.53 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 38.69 ▲6.90 |
Theme Options /wp-admin/admin.php?page=umt | 3.59 | 34.94 |
Template Tool /wp-admin/admin.php?page=um_touch | 3.59 | 32.55 |
Chunks /wp-admin/admin.php?page=um_chunk | 3.59 | 34.24 |
Readme /wp-admin/admin.php?page=um_plug | 3.59 | 31.87 |
Minified Options /wp-admin/admin.php?page=umr | 3.59 | 31.94 |
Tweaks Options /wp-admin/admin.php?page=umo | 3.59 | 35.39 |
UM Theme Setup /wp-admin/admin.php?page=um_setup | 3.59 | 33.87 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- The plugin illegally modified 2 files (0.00KB) outside of "wp-content/plugins/um-plug/" and "wp-content/uploads/"
- (deleted) license.txt
- (deleted) readme.html
Filesystem: 143 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_um_chunked |
Browser metrics Passed 4 tests
This is an overview of browser requirements for UM-Plug
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 14.36 ▼0.04 | 1.79 ▼0.13 | 37.85 ▼10.58 |
Dashboard /wp-admin | 2,253 ▲62 | 5.87 ▲0.97 | 106.91 ▼5.88 | 36.23 ▼4.95 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.10 ▲0.06 | 40.89 ▲1.07 | 31.24 ▼6.14 |
Add New Post /wp-admin/post-new.php | 1,557 ▲43 | 23.36 ▲5.75 | 708.79 ▲28.03 | 63.37 ▲9.72 |
Media Library /wp-admin/upload.php | 1,435 ▲44 | 4.18 ▼0.10 | 101.42 ▼1.74 | 42.18 ▼3.33 |
Theme Options /wp-admin/admin.php?page=umt | 1,113 | 1.89 | 32.11 | 30.28 |
Template Tool /wp-admin/admin.php?page=um_touch | 1,256 | 2.06 | 27.40 | 30.03 |
Chunks /wp-admin/admin.php?page=um_chunk | 952 | 2.09 | 26.77 | 27.40 |
Readme /wp-admin/admin.php?page=um_plug | 970 | 2.08 | 25.48 | 58.41 |
Minified Options /wp-admin/admin.php?page=umr | 1,006 | 2.24 | 26.12 | 28.77 |
Tweaks Options /wp-admin/admin.php?page=umo | 1,214 | 2.26 | 24.71 | 28.02 |
UM Theme Setup /wp-admin/admin.php?page=um_setup | 1,276 | 2.22 | 24.90 | 37.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_um_chunked
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=um_setup
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 18× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/um-plug/addons/impress/function.php
- > /wp-content/plugins/um-plug/um/ajax-adminpage.php
- > /wp-content/plugins/um-plug/um/_etc.php
- > /wp-content/plugins/um-plug/um/cdn.php
- > /wp-content/plugins/um-plug/um/um-touch.php
- > /wp-content/plugins/um-plug/um/um-setup.php
- > /wp-content/plugins/um-plug/um/rewrites.php
- > /wp-content/plugins/um-plug/min/index.php
- > /wp-content/plugins/um-plug/um/ajax-wplogin.php
- > /wp-content/plugins/um-plug/um/_common.php
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/um-plug/min/lib/Minify/Controller/Files.php:27
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/um-plug/min/lib/Minify/Controller/Groups.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function um_hp_register() in wp-content/plugins/um-plug/um/um-pagetemplate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-plug/um/init.php:87
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/um-plug/prop/inc/umplug-setup.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-plug/um/custom-scheme.php:107
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/um-plug/prop/inc/umplug-setup.php on line 7
- > PHP Fatal error
The script "class.JavaScriptPacker.php" is required. Please see: http://code.google.com/p/minify/source/browse/trunk/min/lib/Minify/Packer.php in wp-content/plugins/um-plug/min/lib/Minify/Packer.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_stylesheet_directory() in wp-content/plugins/um-plug/um/apply.php:5
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/um-plug/min/lib/Minify/Controller/MinApp.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
No tags were found
um-plug/um-plug.php 92% from 13 tests
Analyzing the main PHP file in "UM-Plug" version 1.2.0
Please make the necessary changes and 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
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin19,665 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 1,617 | 4,252 | 8,369 |
CSS | 18 | 678 | 114 | 4,450 |
JSON | 1 | 0 | 0 | 2,586 |
JavaScript | 19 | 441 | 518 | 2,267 |
HTML | 11 | 46 | 4 | 1,583 |
Java | 1 | 74 | 77 | 231 |
SVG | 1 | 0 | 0 | 120 |
Markdown | 1 | 26 | 0 | 59 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 29.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 229.00 |
Average method complexity | 5.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 315 | |
▷ Static methods | 69 | 21.90% |
▷ Public methods | 199 | 63.17% |
▷ Protected methods | 56 | 17.78% |
▷ Private methods | 60 | 19.05% |
Functions | 148 | |
▷ Named functions | 148 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 126 | |
▷ Global constants | 99 | 78.57% |
▷ Class constants | 27 | 21.43% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
prop/noavatar.png | 0.94KB | 0.81KB | ▼ 14.18% |