Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼290.47ms] Passed 4 tests
This is a short check of server-side resources used by BuyBlo Box
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.22 | 54.61 ▲4.00 |
Dashboard /wp-admin | 3.69 ▲0.28 | 36.75 ▲3.96 |
Posts /wp-admin/edit.php | 3.91 ▲0.27 | 39.52 ▲1.94 |
Add New Post /wp-admin/post-new.php | 7.22 ▲0.25 | 97.91 ▼1,167.22 |
Media Library /wp-admin/upload.php | 3.64 ▲0.34 | 24.92 ▼0.54 |
BuyBlo Box /wp-admin/options-general.php?page=buyblo-box-config | 3.71 | 26.52 |
Server storage [IO: ▲3.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 948 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
BuyBlo Box: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,938 ▲194 | 16.36 ▲0.54 | 8.81 ▲2.85 | 2.61 ▲0.32 |
Dashboard /wp-admin | 2,924 ▲73 | 6.20 ▲0.03 | 116.96 ▼22.29 | 156.63 ▼4.24 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.24 ▲0.01 | 65.30 ▲0.13 | 139.84 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,724 ▲34 | 16.69 ▼4.15 | 432.41 ▼7.28 | 195.89 ▲36.57 |
Media Library /wp-admin/upload.php | 1,729 ▲31 | 5.77 ▲0.23 | 125.37 ▼19.63 | 187.81 ▼0.59 |
BuyBlo Box /wp-admin/options-general.php?page=buyblo-box-config | 1,152 | 2.65 | 54.43 | 127.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/buyblo-box/buyblo-box.php
- 637× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_BaseNodeVisitor' not found in wp-content/plugins/buyblo-box/vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/buyblo-box/vendor/twig/twig/lib/Twig/Extension/Optimizer.php:15
- > PHP Fatal error
Uncaught Error: Class 'Nokaut\\ApiKitBB\\Ext\\Data\\Collection\\Filters\\PropertyAbstract' not found in wp-content/plugins/buyblo-box/vendor/nokaut/api-kit/src/Ext/Data/Collection/Filters/PropertyValues.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Twig_LoaderInterface' not found in wp-content/plugins/buyblo-box/vendor/twig/twig/lib/Twig/Loader/Chain.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/buyblo-box/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Range.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/buyblo-box/vendor/twig/twig/lib/Twig/Node/Expression/Unary/Neg.php:12
- > PHP Fatal error
Uncaught Error: Class 'Nokaut\\ApiKitBB\\ClientApi\\Rest\\Query\\QueryBuilderAbstract' not found in wp-content/plugins/buyblo-box/vendor/nokaut/api-kit/src/ClientApi/Rest/Query/ProductsQuery.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Common\\HasDispatcherInterface' not found in wp-content/plugins/buyblo-box/vendor/guzzle/guzzle/src/Guzzle/Common/AbstractHasDispatcher.php:12
- > PHP Fatal error
Uncaught Error: Class 'Nokaut\\ApiKitBB\\Converter\\ProductConverter' not found in wp-content/plugins/buyblo-box/vendor/nokaut/api-kit/src/Converter/ProductWithBestOfferConverter.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/buyblo-box/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Less.php:11
- > 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 errors were detected
Optimizations
Plugin configuration 97% 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:
- Screenshots: Please add images for these screenshots: #1 (Konfiguracja pluginu. (Plugin configuration.)), #2 (Dodawanie produktów w edycji posta. (Adding products to post.)), #3 (Widok posta z produktami. (Post view with products.))
buyblo-box/buyblo-box.php Passed 13 tests
Analyzing the main PHP file in "BuyBlo Box" version 1.2.2
61 characters long description:
BuyBlo.com provides product boxes for your wordpress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin48,476 lines of code in 918 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 836 | 10,145 | 22,625 | 41,113 |
Markdown | 10 | 344 | 0 | 1,496 |
JSON | 31 | 8 | 0 | 1,324 |
Sass | 1 | 208 | 4 | 1,150 |
JavaScript | 6 | 137 | 2 | 887 |
C | 1 | 172 | 184 | 859 |
Twig | 10 | 63 | 0 | 622 |
CSS | 3 | 105 | 0 | 473 |
XML | 11 | 36 | 13 | 320 |
Ant | 2 | 28 | 1 | 143 |
YAML | 3 | 15 | 1 | 59 |
C/C++ Header | 1 | 7 | 13 | 15 |
reStructuredText | 1 | 5 | 1 | 9 |
m4 | 1 | 2 | 1 | 5 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 139 | |
Interfaces | 105 | |
Traits | 2 | |
Classes | 722 | |
▷ Abstract classes | 44 | 6.09% |
▷ Concrete classes | 678 | 93.91% |
▷ Final classes | 2 | 0.29% |
Methods | 4,382 | |
▷ Static methods | 206 | 4.70% |
▷ Public methods | 3,824 | 87.27% |
▷ Protected methods | 445 | 10.16% |
▷ Private methods | 113 | 2.58% |
Functions | 138 | |
▷ Named functions | 53 | 38.41% |
▷ Anonymous functions | 85 | 61.59% |
Constants | 195 | |
▷ Global constants | 11 | 5.64% |
▷ Class constants | 184 | 94.36% |
▷ Public constants | 184 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 1.04MB with 0.55MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 349.93KB | 115.25KB | ▼ 67.07% |
assets/images/search_icons.png | 1.40KB | 1.59KB | 0.00% |
screenshot-3.png | 635.32KB | 190.95KB | ▼ 69.94% |
screenshot-1.png | 81.52KB | 22.46KB | ▼ 72.45% |