Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.48MB] [CPU: ▲3.29ms] Passed 4 tests
An overview of server-side resources used by UpdraftCentral Dashboard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 43.49 ▲2.21 |
Dashboard /wp-admin | 3.82 ▲0.51 | 54.54 ▲4.86 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 52.30 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 100.01 ▲11.10 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 36.69 ▲3.71 |
Server storage [IO: ▲17.24MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 595 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_updraftcentral_events |
wp_updraftcentral_sitemeta |
wp_updraftcentral_sites |
wp_updraftcentral_site_temporary_keys |
wp_updraftcentral_user_cron |
New WordPress options |
---|
widget_recent-posts |
updraftcentral_dbversion |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
UpdraftCentral Dashboard: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.21 ▼1.48 | 1.78 ▼0.00 | 43.90 ▼3.51 |
Dashboard /wp-admin | 2,217 ▲26 | 5.84 ▲0.99 | 101.25 ▼8.96 | 71.92 ▲29.01 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▲0.02 | 38.34 ▼2.05 | 36.73 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.27 ▲4.86 | 715.63 ▲89.38 | 51.73 ▼6.27 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.21 ▲0.02 | 98.81 ▼2.55 | 68.71 ▲24.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp_updraftcentral_user_cron
- wp_updraftcentral_sites
- wp_updraftcentral_events
- wp_updraftcentral_sitemeta
- wp_updraftcentral_site_temporary_keys
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- updraftcentral_dbversion
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 62× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/updraftcentral/classes/class-updraftcentral-logger-interface.php
- > /wp-content/plugins/updraftcentral/classes/class-uploader.php
- > /wp-content/plugins/updraftcentral/templates/dashboard/sidebar-navigation.php
- > /wp-content/plugins/updraftcentral/classes/class-rest-users-controller.php
- > /wp-content/plugins/updraftcentral/classes/class-updraftcentral-abstract-logger.php
- > /wp-content/plugins/updraftcentral/templates/handlebars-compiler.php
- > /wp-content/plugins/updraftcentral/modules/site_search/translations-dashboard.php
- > /wp-content/plugins/updraftcentral/modules/events/templates/management-actions.php
- > /wp-content/plugins/updraftcentral/classes/licence-manager.php
- > /wp-content/plugins/updraftcentral/modules/events/loader.php
- 64× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/updraftcentral/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/updraftcentral/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/updraftcentral/vendor/guzzlehttp/psr7/src/Response.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/updraftcentral/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/updraftcentral/modules/updraftplus/templates/management-actions.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/updraftcentral/vendor/psr/http-message/src/ServerRequestInterface.php:45
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/updraftcentral/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/updraftcentral/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/updraftcentral/templates/dashboard/notices.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/updraftcentral/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots require images: #14 (Manage plugins on a controlled site (premium only)), #15 (Manage themes on a controlled site (premium only))
updraftcentral/site-management.php 85% from 13 tests
Analyzing the main PHP file in "UpdraftCentral Dashboard" version 0.8.29
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("updraftcentral.php" instead of "site-management.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "4.6")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected178,951 lines of code in 507 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 77 | 16,451 | 19,762 | 70,811 |
PHP | 236 | 8,321 | 23,227 | 57,493 |
CSS | 51 | 3,523 | 466 | 43,307 |
Markdown | 19 | 1,271 | 0 | 3,775 |
JSON | 11 | 0 | 0 | 1,387 |
HTML | 51 | 82 | 4 | 1,213 |
SVG | 59 | 14 | 58 | 923 |
YAML | 1 | 2 | 0 | 25 |
XML | 2 | 0 | 12 | 17 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 43.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 657.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 148 | |
▷ Abstract classes | 5 | 3.38% |
▷ Concrete classes | 143 | 96.62% |
▷ Final classes | 24 | 16.78% |
Methods | 1,869 | |
▷ Static methods | 205 | 10.97% |
▷ Public methods | 1,659 | 88.76% |
▷ Protected methods | 21 | 1.12% |
▷ Private methods | 189 | 10.11% |
Functions | 170 | |
▷ Named functions | 76 | 44.71% |
▷ Anonymous functions | 94 | 55.29% |
Constants | 420 | |
▷ Global constants | 281 | 66.90% |
▷ Class constants | 139 | 33.10% |
▷ Public constants | 139 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
35 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/updraftplus/icons/onedrive.png | 1.07KB | 0.90KB | ▼ 15.36% |
modules/updraftplus/icons/webdav.png | 2.24KB | 1.48KB | ▼ 34.03% |
images/updraft_central_premium_logo.png | 2.09KB | 2.19KB | 0.00% |
images/updraftcentral-logo-icon.png | 3.29KB | 1.82KB | ▼ 44.75% |
modules/updraftplus/icons/s3.png | 1.05KB | 1.12KB | 0.00% |