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: ▲5.38MB] [CPU: ▲18.44ms] 75% from 4 tests
A check of server-side resources used by WPvivid Backup for MainWP
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.38MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.41 | 84.23 ▲42.25 |
Dashboard /wp-admin | 8.71 ▲5.36 | 75.33 ▲14.29 |
Posts /wp-admin/edit.php | 8.76 ▲5.40 | 81.55 ▲23.27 |
Add New Post /wp-admin/post-new.php | 11.23 ▲5.34 | 117.59 ▲5.80 |
Media Library /wp-admin/upload.php | 8.64 ▲5.40 | 66.58 ▲30.40 |
Server storage [IO: ▲6.73MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 829 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_mainwp_wpvivid_global_options |
wp_mainwp_wpvividmeta |
wp_mainwp_wpvivid |
wp_mainwp_wpvivid_global |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
mainwp_wpvivid_backups_db_version |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WPvivid Backup for MainWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲73 | 14.28 ▼0.43 | 1.73 ▼0.44 | 41.55 ▼0.17 |
Dashboard /wp-admin | 2,228 ▲50 | 4.87 ▼0.85 | 99.96 ▼14.19 | 42.24 ▼3.81 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.29 ▲0.29 | 42.93 ▼0.34 | 35.91 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,546 ▲11 | 23.11 ▲4.49 | 605.96 ▼60.34 | 52.05 ▼19.71 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.29 ▲0.08 | 102.12 ▲0.95 | 40.93 ▼6.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_mainwp_wpvivid_global
- wp_mainwp_wpvividmeta
- wp_mainwp_wpvivid_global_options
- wp_mainwp_wpvivid
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- mainwp_wpvivid_backups_db_version
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 477× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\Version' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultCacheKeyProvider.php:7
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Service\\Command\\ResponseParserInterface' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/guzzle/guzzle/src/Guzzle/Service/Command/DefaultResponseParser.php:10
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php:20
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Plugin\\Backoff\\AbstractBackoffStrategy' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ConstantBackoffStrategy.php:14
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\AbstractHasDispatcher' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/guzzle/guzzle/src/Guzzle/Http/Client.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcherInterface' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/wpvivid-backup-mainwp/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #4 is required in wpvivid-backup-mainwp/assets to your readme.txt
wpvivid-backup-mainwp/wpvivid-backup-mainwp.php 92% from 13 tests
The primary PHP file in "WPvivid Backup for MainWP" version 0.9.32 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 231 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected116,581 lines of code in 759 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 671 | 15,788 | 38,011 | 98,803 |
JavaScript | 3 | 210 | 2,294 | 6,873 |
Markdown | 33 | 1,641 | 0 | 5,660 |
CSS | 5 | 94 | 53 | 2,927 |
JSON | 38 | 8 | 0 | 2,119 |
XML | 5 | 14 | 0 | 125 |
YAML | 3 | 12 | 0 | 65 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 651.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 77 | |
Interfaces | 79 | |
Traits | 5 | |
Classes | 606 | |
▷ Abstract classes | 23 | 3.80% |
▷ Concrete classes | 583 | 96.20% |
▷ Final classes | 12 | 2.06% |
Methods | 5,768 | |
▷ Static methods | 277 | 4.80% |
▷ Public methods | 5,144 | 89.18% |
▷ Protected methods | 365 | 6.33% |
▷ Private methods | 259 | 4.49% |
Functions | 294 | |
▷ Named functions | 67 | 22.79% |
▷ Anonymous functions | 227 | 77.21% |
Constants | 494 | |
▷ Global constants | 267 | 54.05% |
▷ Class constants | 227 | 45.95% |
▷ Public constants | 227 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
41 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/backup-migration.png | 2.14KB | 1.37KB | ▼ 36.03% |
admin/images/pro.png | 2.23KB | 1.18KB | ▼ 47.12% |
admin/js/jstree/dist/themes/default/32px.png | 5.53KB | 2.93KB | ▼ 47.10% |
admin/images/storage-wasabi(gray).png | 2.68KB | 1.43KB | ▼ 46.43% |
admin/js/jstree/dist/themes/default-dark/32px.png | 1.49KB | 1.53KB | 0.00% |