Benchmarks
Plugin footprint 65% 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.05MB] [CPU: ▼3.85ms] Passed 4 tests
An overview of server-side resources used by Simba Plugin Updates Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.14 ▼4.28 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.08 ▲0.43 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.39 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.83 ▼6.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.21 ▼4.60 |
Plugins Manager /wp-admin/admin.php?page=updraftmanager | 3.32 | 33.01 |
/wp-admin/users.php?page=udmanager_manage_user | 3.25 | 35.25 |
Upload Zip /wp-admin/admin.php?page=updraftmanager_upload_zip | 3.26 | 34.12 |
Add New /wp-admin/admin.php?page=updraftmanager_add_new | 3.26 | 32.58 |
Renewal Reminders /wp-admin/admin.php?page=updraftmanager_renewal_reminders | 3.32 | 35.33 |
Server storage [IO: ▲2.13MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 226 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_udmanager_plugins |
wp_udmanager_user_entitlements |
wp_udmanager_download_history |
New WordPress options |
---|
updraftmanager_last_version |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Simba Plugin Updates Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.07 ▼0.27 | 1.65 ▲0.07 | 38.35 ▼4.38 |
Dashboard /wp-admin | 2,235 ▲54 | 5.61 ▼0.10 | 93.52 ▼12.19 | 42.28 ▲0.43 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.02 ▼0.11 | 39.92 ▼0.90 | 35.71 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.11 ▼0.85 | 621.61 ▼92.74 | 55.60 ▲2.32 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.19 ▼0.03 | 98.67 ▼7.17 | 41.36 ▼4.22 |
Plugins Manager /wp-admin/admin.php?page=updraftmanager | 980 | 1.91 | 39.46 | 30.28 |
/wp-admin/users.php?page=udmanager_manage_user | 810 | 1.87 | 33.97 | 23.54 |
Upload Zip /wp-admin/admin.php?page=updraftmanager_upload_zip | 945 | 2.60 | 47.85 | 38.62 |
Add New /wp-admin/admin.php?page=updraftmanager_add_new | 943 | 1.86 | 30.11 | 30.42 |
Renewal Reminders /wp-admin/admin.php?page=updraftmanager_renewal_reminders | 1,679 | 6.93 | 136.30 | 64.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_udmanager_user_entitlements
- wp_udmanager_plugins
- wp_udmanager_download_history
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- updraftmanager_last_version
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 20× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/simba-plugin-updates-manager/classes/class-updraft-semaphore.php
- > /wp-content/plugins/simba-plugin-updates-manager/convert-download-numbers.php
- > /wp-content/plugins/simba-plugin-updates-manager/classes/updraftmanager.php
- > /wp-content/plugins/simba-plugin-updates-manager/vendor/simbamanager_wp_mail.php
- > /wp-content/plugins/simba-plugin-updates-manager/classes/updraftmanager-ziprules-table.php
- > /wp-content/plugins/simba-plugin-updates-manager/convert-plugins.php
- > /wp-content/plugins/simba-plugin-updates-manager/classes/updraftmanager-semaphore-logger.php
- > /wp-content/plugins/simba-plugin-updates-manager/vendor/michelf/php-markdown/Readme.php
- > /wp-content/plugins/simba-plugin-updates-manager/premium/class-plugin.php
- > /wp-content/plugins/simba-plugin-updates-manager/premium/options.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught InvalidArgumentException: Expected: php -f convert.php [input file] in wp-content/plugins/simba-plugin-updates-manager/vendor/soundasleep/html2text/convert.php:9
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/simba-plugin-updates-manager/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php:48
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Rijndael' not found in wp-content/plugins/simba-plugin-updates-manager/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php:59
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/simba-plugin-updates-manager/vendor/michelf/php-markdown/Michelf/Markdown.php:16
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/simba-plugin-updates-manager/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC2.php:44
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/simba-plugin-updates-manager/vendor/phpseclib/phpseclib/phpseclib/Crypt/DES.php:52
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/simba-plugin-updates-manager/vendor/michelf/php-markdown/test/unit/MarkdownExtraTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/simba-plugin-updates-manager/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php:64
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/simba-plugin-updates-manager/vendor/soundasleep/html2text/convert.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/simba-plugin-updates-manager/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=updraftmanager_renewal_reminders
- > Network (severe)
wp-content/uploads/updraftmanager/1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: wordpress updates, renewals, updates server, licensing, licences...
simba-plugin-updates-manager/udmanager.php 92% from 13 tests
"Simba Plugin Updates Manager" version 1.11.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("simba-plugin-updates-manager.php" instead of "udmanager.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
Everything looks great! No dangerous files found in this plugin35,542 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 5,782 | 15,270 | 29,721 |
XHTML | 56 | 1,024 | 0 | 2,503 |
CSS | 2 | 56 | 54 | 1,245 |
JavaScript | 5 | 184 | 119 | 1,004 |
Markdown | 5 | 212 | 0 | 485 |
JSON | 5 | 2 | 0 | 407 |
YAML | 3 | 5 | 1 | 79 |
HTML | 4 | 45 | 13 | 68 |
XML | 2 | 1 | 1 | 30 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 117)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 113.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 644.00 |
Average method complexity | 6.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 117.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 1 | 2.00% |
▷ Concrete classes | 49 | 98.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,021 | |
▷ Static methods | 74 | 7.25% |
▷ Public methods | 890 | 87.17% |
▷ Protected methods | 105 | 10.28% |
▷ Private methods | 26 | 2.55% |
Functions | 14 | |
▷ Named functions | 8 | 57.14% |
▷ Anonymous functions | 6 | 42.86% |
Constants | 200 | |
▷ Global constants | 33 | 16.50% |
▷ Class constants | 167 | 83.50% |
▷ Public constants | 167 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/shopcart.png | 15.68KB | 6.33KB | ▼ 59.64% |
images/yes.png | 3.44KB | 1.86KB | ▼ 45.80% |