Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.67ms] Passed 4 tests
A check of server-side resources used by Bread Pay
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.10 ▼4.59 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.04 ▼4.33 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 45.20 ▲0.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.82 ▼13.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.01 ▲1.01 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Bread Pay: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.13 ▼0.58 | 1.62 ▼0.09 | 36.42 ▼7.28 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▲0.05 | 91.12 ▼12.22 | 40.53 ▼4.29 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▲0.01 | 41.55 ▲2.95 | 36.66 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.23 ▼0.29 | 616.86 ▼38.55 | 47.71 ▼11.00 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.13 ▼0.07 | 97.25 ▼4.42 | 41.90 ▼0.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bread-finance/templates/buttons/button_placeholder.php
- > /wp-content/plugins/bread-finance/bread-finance.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Bread_Finance\\Classes\\Compat\\Bread_Finance_Currency_Abstract' not found in wp-content/plugins/bread-finance/classes/compat/class-bread-finance-currency-woocs.php:5
- > PHP Fatal error
Uncaught Error: Class 'Bread_Finance\\Classes\\Compat\\Bread_Finance_Currency_Abstract' not found in wp-content/plugins/bread-finance/classes/compat/class-bread-finance-currency-pboc.php:5
- > PHP Notice
Undefined variable: title in wp-content/plugins/bread-finance/templates/buttons/button_placeholder.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Bread_Finance\\Classes\\Bread_Finance_Options_Cart' not found in wp-content/plugins/bread-finance/classes/class-bread-finance-options-checkout.php:9
- > PHP Fatal error
Uncaught Error: Class 'Bread_Finance\\Classes\\Bread_Finance_Options_Cart' not found in wp-content/plugins/bread-finance/classes/class-bread-finance-options-category.php:9
- > PHP Fatal error
Uncaught Error: Class 'Bread_Finance\\Classes\\Bread_Finance_Options_Cart' not found in wp-content/plugins/bread-finance/classes/class-bread-finance-options-cart-checkout.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== bread-finance ===
)
bread-finance/bread-finance.php 77% from 13 tests
The principal PHP file in "Bread Pay" v. 3.4.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "3.0.0")
- Domain Path: The domain path folder was not found ("/i18n/languages/")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,945 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,260 | 1,684 | 5,710 |
JavaScript | 11 | 402 | 449 | 2,647 |
CSS | 3 | 28 | 27 | 246 |
Markdown | 1 | 69 | 0 | 200 |
Sass | 1 | 11 | 0 | 91 |
JSON | 1 | 0 | 0 | 25 |
YAML | 1 | 0 | 0 | 23 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 320 | |
▷ Static methods | 38 | 11.88% |
▷ Public methods | 248 | 77.50% |
▷ Protected methods | 11 | 3.44% |
▷ Private methods | 61 | 19.06% |
Functions | 14 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 14 | 100.00% |
Constants | 11 | |
▷ Global constants | 6 | 54.55% |
▷ Class constants | 5 | 45.45% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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 |
assets/image/logo.png | 11.96KB | 6.19KB | ▼ 48.27% |
assets/image/bread_finance_logo.png | 7.17KB | 3.80KB | ▼ 46.98% |