Benchmarks
Plugin footprint 65% 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.47MB] [CPU: ▼39.32ms] Passed 4 tests
This is a short check of server-side resources used by Admin Branding and Tweaks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 21.07 ▼20.97 |
Dashboard /wp-admin | 3.54 ▲0.24 | 20.54 ▼30.31 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 18.84 ▼30.28 |
Add New Post /wp-admin/post-new.php | 3.54 ▼2.34 | 19.78 ▼75.71 |
Media Library /wp-admin/upload.php | 3.54 ▲0.32 | 19.54 ▼15.14 |
WP Branding /wp-admin/options-general.php?page=agnet_branding | 3.54 | 19.80 |
Server storage [IO: ▲4.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 398 new files
Database: no new tables, 7 new options
New WordPress options |
---|
agnet_branding |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Admin Branding and Tweaks: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.73 ▲0.35 | 1.71 ▼0.02 | 44.75 ▼0.17 |
Dashboard /wp-admin | 2,218 ▲27 | 4.85 ▼0.01 | 112.15 ▼5.27 | 41.02 ▼4.29 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.06 ▲0.06 | 34.89 ▼1.11 | 31.64 ▼5.47 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.34 ▲0.18 | 677.88 ▼22.80 | 61.55 ▲3.27 |
Media Library /wp-admin/upload.php | 1,403 ▲21 | 4.18 ▼0.02 | 95.42 ▼1.98 | 38.61 ▼8.62 |
WP Branding /wp-admin/options-general.php?page=agnet_branding | 6,009 | 7.41 | 141.93 | 122.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/admin-branding-and-tweaks/framework/includes/wpalchemy/MetaBox.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- agnet_branding
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=agnet_branding
- > Deprecated in wp-content/plugins/admin-branding-and-tweaks/framework/includes/wpalchemy/MetaBox.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=agnet_branding
- > User deprecated in wp-includes/functions.php+5453
Function wp_richedit_pre is deprecated since version 4.3.0! Use format_for_editor() instead.
- > GET request to /wp-admin/options-general.php?page=agnet_branding
- > Deprecated in wp-content/plugins/admin-branding-and-tweaks/framework/bootstrap.php+195
Function create_function() is deprecated
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/admin-branding-and-tweaks/index.php
- 228× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/admin-branding-and-tweaks/framework/constant.php:11
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/admin-branding-and-tweaks/framework/classes/control/field/html.php:3
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/admin-branding-and-tweaks/framework/config/dependencies.php on line 164
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/admin-branding-and-tweaks/includes/views/control/checkimage.php on line 1
- > PHP Notice
Undefined variable: type in wp-content/plugins/admin-branding-and-tweaks/includes/views/control/html.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/admin-branding-and-tweaks/framework/classes/control/field/textbox.php:3
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/admin-branding-and-tweaks/includes/views/control/fontawesome.php on line 1
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/admin-branding-and-tweaks/framework/config/dependencies.php on line 135
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMultiImage' not found in wp-content/plugins/admin-branding-and-tweaks/framework/classes/control/field/radioimage.php:3
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/admin-branding-and-tweaks/framework/views/control/select.php on line 1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=agnet_branding
- > Network (severe)
css/googlefont.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=agnet_branding
- > Javascript (severe) in unknown
/wp-content/plugins/admin-branding-and-tweaks/framework/public/js/vendor/jquery.tipsy.js?ver=1.0.0a 179:24 Uncaught TypeError: this[binder] is not a function
- > GET request to /wp-admin/options-general.php?page=agnet_branding
- > Javascript (severe) in unknown
/wp-content/plugins/admin-branding-and-tweaks/framework/public/js/option.min.js?ver=6.3.1 0:373 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (32 tag instead of maximum 10)
admin-branding-and-tweaks/wp_branding.php 92% from 13 tests
"Admin Branding and Tweaks" version 1.0.3'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:
- Main file name: The principal plugin file should be the same as the plugin slug ("admin-branding-and-tweaks.php" instead of "wp_branding.php")
Code Analysis 97% from 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 plugin17,562 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 2,108 | 2,339 | 9,319 |
CSS | 18 | 158 | 176 | 3,348 |
JavaScript | 48 | 454 | 303 | 2,983 |
Sass | 1 | 64 | 30 | 1,377 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 3 | 48 | 0 | 120 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 112 | |
▷ Abstract classes | 8 | 7.14% |
▷ Concrete classes | 104 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 1,010 | |
▷ Static methods | 178 | 17.62% |
▷ Public methods | 944 | 93.47% |
▷ Protected methods | 38 | 3.76% |
▷ Private methods | 28 | 2.77% |
Functions | 76 | |
▷ Named functions | 76 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 72 | |
▷ Global constants | 66 | 91.67% |
▷ Class constants | 6 | 8.33% |
▷ Public constants | 6 | 100.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
46 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/public/img/vp_shortcode_icon_sprite.png | 1.55KB | 0.42KB | ▼ 73.10% |
framework/public/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |
includes/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/public/img/vp-logo.png | 1.94KB | 0.66KB | ▼ 65.94% |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |