Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.56MB] [CPU: ▼5.13ms] Passed 4 tests
A check of server-side resources used by Zero BS Accounting
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 51.87 ▲7.93 |
Dashboard /wp-admin | 3.87 ▲0.52 | 62.73 ▼9.36 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 64.07 ▲6.28 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 105.23 ▼25.36 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 55.96 ▲15.94 |
Server storage [IO: ▲8.42MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_zbs_profiles |
New WordPress options |
---|
zbs-accountpage |
transaction_category_children |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
zbs_accounting_migration |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Zero BS Accounting
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.25 ▼0.03 | 1.93 ▲0.27 | 40.28 ▼0.60 |
Dashboard /wp-admin | 2,219 ▲39 | 5.56 ▼0.10 | 90.20 ▲1.29 | 41.22 ▼5.54 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.03 ▲0.01 | 34.58 ▼7.23 | 34.54 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.79 ▲0.66 | 696.36 ▼0.92 | 85.34 ▲31.51 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.15 ▼0.04 | 96.97 ▼13.65 | 46.27 ▼0.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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
- > Warning in wp-content/plugins/zero-bs-accounting/appsero/src/Client.php+178
require_once(wp-content/plugins/zero-bs-accounting/appsero/src/License.php): failed to open stream: No such file or directory
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_zbs_profiles
- This plugin did not uninstall successfully, leaving 9 options in the database
- transaction_category_children
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- zbs_accounting_migration
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: expense, invoice, bookkeeping, income tracking, income...
zero-bs-accounting/zero-bs-accounting.php 92% from 13 tests
"Zero BS Accounting" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin6,357 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 318 | 9 | 2,703 |
PHP | 9 | 589 | 983 | 2,666 |
JavaScript | 14 | 9 | 915 | 551 |
Markdown | 2 | 91 | 0 | 270 |
XML | 1 | 38 | 53 | 73 |
JSON | 4 | 0 | 0 | 57 |
HTML | 2 | 0 | 2 | 32 |
SVG | 2 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 126 | |
▷ Static methods | 3 | 2.38% |
▷ Public methods | 91 | 72.22% |
▷ Protected methods | 6 | 4.76% |
▷ Private methods | 29 | 23.02% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/edd.png | 30.75KB | 12.89KB | ▼ 58.07% |
public/images/edd.png | 30.75KB | 12.89KB | ▼ 58.07% |
dist/images/9c96e0ed7093c095fd33870329282962.png | 64.47KB | 21.79KB | ▼ 66.20% |
public/images/woocommerce.png | 14.72KB | 8.70KB | ▼ 40.92% |
public/images/9c96e0ed7093c095fd33870329282962.png | 64.47KB | 21.79KB | ▼ 66.20% |