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
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.48ms] Passed 4 tests
This is a short check of server-side resources used by B1.lt
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.67 ▲2.15 |
Dashboard /wp-admin | 3.45 ▲0.11 | 47.55 ▼11.48 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 45.83 ▲0.63 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 88.89 ▼5.07 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.89 ▲2.02 |
B1.lt /wp-admin/admin.php?page=b1-accounting | 3.46 | 32.71 |
Server storage [IO: ▲1.77MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_b1_validation_logs |
wp_b1_logs |
New WordPress options |
---|
b1_database_version |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
b1-accounting |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by B1.lt
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▼0.01 | 1.74 ▼0.16 | 39.62 ▼4.92 |
Dashboard /wp-admin | 2,206 ▲24 | 4.88 ▼0.93 | 108.91 ▼2.81 | 40.97 ▼2.15 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.03 | 38.55 ▼3.37 | 34.14 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.17 ▼4.96 | 593.12 ▼76.77 | 72.35 ▲18.93 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.02 | 92.54 ▼15.15 | 39.99 ▼2.76 |
B1.lt /wp-admin/admin.php?page=b1-accounting | 2,053 | 2.16 | 32.09 | 77.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- b1_database_version
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'B1_Accounting_Base' not found in wp-content/plugins/b1-accounting/admin/class-b1-accounting-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/b1-accounting/includes/class-b1-accounting-deactivator.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/b1-accounting/includes/class-b1-accounting-validation-logger.php:2
- > PHP Fatal error
Uncaught Error: Class 'B1_Accounting_Base' not found in wp-content/plugins/b1-accounting/includes/class-b1-accounting-manager.php:3
- > PHP Fatal error
Uncaught Error: Class 'B1_Accounting' not found in wp-content/plugins/b1-accounting/includes/class-b1-accounting-activator.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/b1-accounting/includes/class-b1-accounting-logger.php:2
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #3 in b1-accounting/assets to your readme.txt
b1-accounting/b1-accounting.php Passed 13 tests
The main PHP script in "B1.lt" version 2.2.51 is automatically included on every request by WordPress
22 characters long description:
Integration with B1.lt
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,894 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 432 | 405 | 3,325 |
JavaScript | 1 | 27 | 17 | 308 |
PO File | 1 | 91 | 124 | 200 |
CSS | 1 | 6 | 0 | 35 |
Markdown | 1 | 11 | 0 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 48 | 33.33% |
▷ Public methods | 130 | 90.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 9.72% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 1 | 7.69% |
▷ Class constants | 12 | 92.31% |
▷ Public constants | 12 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.57MB with 1.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 3.24KB | 1.64KB | ▼ 49.55% |
assets/banner-1544x500.png | 334.60KB | 108.80KB | ▼ 67.48% |
assets/screenshot-1.png | 233.66KB | 69.75KB | ▼ 70.15% |
assets/screenshot-2.png | 944.72KB | 300.07KB | ▼ 68.24% |
assets/banner-772x250.png | 88.95KB | 30.99KB | ▼ 65.16% |