Benchmarks
Plugin footprint 83% 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.00MB] [CPU: ▼0.47ms] Passed 4 tests
A check of server-side resources used by Frequently bought items
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.55 ▲0.08 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.23 ▲0.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.17 ▲5.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.82 ▼5.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.43 ▲2.82 |
Settings /wp-admin/admin.php?page=buy-together | 3.00 | 22.57 |
ShortCode /wp-admin/admin.php?page=buy-together-shortcode | 3.00 | 21.88 |
My Custom Submenu Page /wp-admin/admin.php?page=my-secondary-slug | 3.00 | 22.73 |
My Custom Page 1 /wp-admin/admin.php?page=my-top-level-slug | 3.00 | 22.16 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 199 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
FBI_options |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Frequently bought items: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.61 ▼0.58 | 1.80 ▲0.26 | 41.24 ▲1.39 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.96 | 113.49 ▼2.13 | 40.51 ▼7.68 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▲0.00 | 39.31 ▲3.99 | 34.32 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,513 ▼29 | 17.48 ▼0.81 | 604.19 ▼44.48 | 46.85 ▼27.90 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.00 | 97.31 ▼4.27 | 42.89 ▼0.17 |
Settings /wp-admin/admin.php?page=buy-together | 28 | 0.44 | 0.13 | 3.57 |
ShortCode /wp-admin/admin.php?page=buy-together-shortcode | 28 | 0.44 | 0.09 | 3.91 |
My Custom Submenu Page /wp-admin/admin.php?page=my-secondary-slug | 28 | 0.44 | 0.07 | 3.57 |
My Custom Page 1 /wp-admin/admin.php?page=my-top-level-slug | 28 | 0.44 | 0.08 | 3.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- FBI_options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/frequently-woo-bought/buy-together.php
- > /wp-content/plugins/frequently-woo-bought/template/FBIShortCodeSettings.php
- > /wp-content/plugins/frequently-woo-bought/template/templates/FBILayoutOne.php
- 88× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Phpml\\Helper\\Optimizer\\StochasticGD' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/Helper/Optimizer/GD.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Phpml\euralNetwork\\ActivationFunction' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/NeuralNetwork/ActivationFunction/ThresholdedReLU.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Phpml\\Transformer' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/Preprocessing/Preprocessor.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Phpml\\Estimator' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/Pipeline.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Phpml\\Preprocessing\\Preprocessor' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/Preprocessing/NumberConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Phpml\\Preprocessing\\Imputer\\Strategy' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/Preprocessing/Imputer/Strategy/MeanStrategy.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Phpml\\Math\\Kernel' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/Math/Kernel/RBF.php:11
- > PHP Fatal error
Uncaught Error: Class 'Phpml\\CrossValidation\\Split' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/CrossValidation/RandomSplit.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Phpml\\Estimator' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/Classification/Classifier.php:9
- > PHP Fatal error
Uncaught Error: Class 'Phpml\\Dataset\\ArrayDataset' not found in wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/src/Dataset/FilesDataset.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=buy-together
- > Network (severe)
wp-admin/admin.php?page=buy-together - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=buy-together-shortcode
- > Network (severe)
wp-admin/admin.php?page=buy-together-shortcode - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=my-secondary-slug
- > Network (severe)
wp-admin/admin.php?page=my-secondary-slug - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=my-top-level-slug
- > Network (severe)
wp-admin/admin.php?page=my-top-level-slug - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% 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
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in frequently-woo-bought/assets to your readme.txt
frequently-woo-bought/buy-together.php 77% from 13 tests
The main file in "Frequently bought items" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("frequently-woo-bought.php" instead of "buy-together.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/bin/libsvm/svm-predict.exe
- ☣ wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/bin/libsvm/svm-scale.exe
- ☣ wp-content/plugins/frequently-woo-bought/vendor/php-ai/php-ml/bin/libsvm/svm-train.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 160 | 2,443 | 3,003 | 8,735 |
CSS | 4 | 91 | 13 | 759 |
JSON | 3 | 0 | 0 | 138 |
Markdown | 2 | 29 | 0 | 125 |
JavaScript | 4 | 10 | 11 | 97 |
SVG | 3 | 0 | 0 | 31 |
Bourne Shell | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 41 | |
Interfaces | 17 | |
Traits | 3 | |
Classes | 128 | |
▷ Abstract classes | 9 | 7.03% |
▷ Concrete classes | 119 | 92.97% |
▷ Final classes | 18 | 15.13% |
Methods | 650 | |
▷ Static methods | 85 | 13.08% |
▷ Public methods | 441 | 67.85% |
▷ Protected methods | 99 | 15.23% |
▷ Private methods | 110 | 16.92% |
Functions | 50 | |
▷ Named functions | 8 | 16.00% |
▷ Anonymous functions | 42 | 84.00% |
Constants | 46 | |
▷ Global constants | 3 | 6.52% |
▷ Class constants | 43 | 93.48% |
▷ Public constants | 38 | 88.37% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dummy.png | 100.24KB | 73.05KB | ▼ 27.12% |