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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.47ms] Passed 4 tests
Server-side resources used by b2-sync
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.38 ▲1.01 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.22 ▼4.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.39 ▼2.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 97.94 ▼2.24 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.15 ▼0.72 |
B2-Sync /wp-admin/admin.php?page=b2-sync-settings-page | 4.43 | 75.17 |
B2-Sync LOG /wp-admin/admin.php?page=b2-sync-log-page | 3.64 | 31.02 |
Server storage [IO: ▲5.95MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 1,001 new files
Database: no new tables, 7 new options
New WordPress options |
---|
b2_sync_plugin_option_name |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by b2-sync
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.60 ▲0.23 | 1.82 ▲0.03 | 43.28 ▼0.02 |
Dashboard /wp-admin | 2,229 ▲37 | 5.85 ▲0.92 | 96.98 ▼9.96 | 40.77 ▼2.31 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.05 ▲0.05 | 41.35 ▲7.53 | 33.55 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 18.68 ▼4.42 | 608.44 ▼43.17 | 54.13 ▼8.35 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.20 ▼0.01 | 95.30 ▲0.15 | 43.60 ▲0.24 |
B2-Sync /wp-admin/admin.php?page=b2-sync-settings-page | 924 | 1.72 | 28.11 | 27.83 |
B2-Sync LOG /wp-admin/admin.php?page=b2-sync-log-page | 845 | 2.02 | 22.24 | 30.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/b2-sync/uninstall.php+32
Constant B2Sync_DS already defined
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/b2-sync/includes/vendor/timber/timber/tests/bootstrap.php
- > /wp-content/plugins/b2-sync/includes/vendor/timber/timber/tests/assets/my-sidebar.php
- 480× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/b2-sync/includes/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/b2-sync/includes/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php:4
- > PHP Fatal error
Uncaught Error: Class 'Timber_UnitTestCase' not found in wp-content/plugins/b2-sync/includes/vendor/timber/timber/tests/test-timber-router.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\Cache\\CacheInterface' not found in wp-content/plugins/b2-sync/includes/vendor/twig/twig/src/Cache/FilesystemCache.php:19
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/b2-sync/includes/vendor/composer/installers/src/Composer/Installers/WinterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/b2-sync/includes/vendor/twig/twig/src/Node/Expression/Unary/NegUnary.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/b2-sync/includes/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/b2-sync/includes/vendor/twig/twig/src/TokenParser/DeprecatedTokenParser.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/b2-sync/includes/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'Timber\\Core' not found in wp-content/plugins/b2-sync/includes/vendor/timber/timber/lib/Request.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: backup, backblaze b2, backblaze, sync
b2-sync/b2-sync.php 85% from 13 tests
"b2-sync" version 1.2.0'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:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.7.0")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin53,436 lines of code in 946 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 802 | 9,848 | 18,089 | 46,351 |
Markdown | 54 | 1,561 | 0 | 3,970 |
JSON | 14 | 0 | 0 | 1,651 |
YAML | 12 | 122 | 6 | 552 |
Bourne Shell | 3 | 52 | 19 | 287 |
Twig | 47 | 13 | 0 | 229 |
XML | 9 | 19 | 52 | 191 |
PO File | 1 | 68 | 86 | 180 |
SVG | 2 | 0 | 0 | 15 |
reStructuredText | 1 | 8 | 5 | 10 |
CSS | 1 | 1 | 13 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 57 | |
Interfaces | 31 | |
Traits | 5 | |
Classes | 753 | |
▷ Abstract classes | 23 | 3.05% |
▷ Concrete classes | 730 | 96.95% |
▷ Final classes | 56 | 7.67% |
Methods | 3,410 | |
▷ Static methods | 372 | 10.91% |
▷ Public methods | 2,892 | 84.81% |
▷ Protected methods | 352 | 10.32% |
▷ Private methods | 166 | 4.87% |
Functions | 284 | |
▷ Named functions | 129 | 45.42% |
▷ Anonymous functions | 155 | 54.58% |
Constants | 190 | |
▷ Global constants | 19 | 10.00% |
▷ Class constants | 171 | 90.00% |
▷ Public constants | 148 | 86.55% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/timber/timber/tests/assets/eastern-trans.png | 12.34KB | 7.39KB | ▼ 40.11% |
includes/vendor/timber/timber/tests/assets/cropper.png | 15.74KB | 0.31KB | ▼ 98.01% |
includes/vendor/timber/timber/tests/assets/flag.png | 10.33KB | 4.00KB | ▼ 61.24% |