Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.32ms] Passed 4 tests
Server-side resources used by Bizuno ERP/Accounting
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 41.46 ▲4.59 |
Dashboard /wp-admin | 3.41 ▲0.10 | 49.09 ▲0.97 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.54 ▲2.75 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 80.71 ▼13.95 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.75 ▲0.94 |
Server storage [IO: ▲16.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2,703 new files
Database: no new tables, 7 new options
New WordPress options |
---|
bizuno_pro_key |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Bizuno ERP/Accounting: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲45 | 14.25 ▲0.11 | 1.76 ▲0.23 | 41.93 ▲5.11 |
Dashboard /wp-admin | 2,209 ▲28 | 5.69 ▼0.00 | 97.53 ▼15.55 | 73.20 ▲27.23 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 1.96 ▼0.00 | 35.77 ▼7.10 | 33.63 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,553 ▲18 | 23.24 ▼1.88 | 774.77 ▲154.00 | 52.47 ▼16.25 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.21 ▼0.00 | 102.22 ▼0.46 | 72.72 ▲30.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- bizuno_pro_key
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 88× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_012.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_017.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_032.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_049.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_048.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_050.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_064.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_057.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_020.php
- > /wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/example_033.php
- 422× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: langCore in wp-content/plugins/bizuno-accounting/locale/en_US/langByRef.php on line 72
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\CrossReference\\ReaderInterface' not found in wp-content/plugins/bizuno-accounting/assets/Setasign/FPDI_PDF-Parser-2.0.7/src/PdfParser/CrossReference/CorruptedReader.php:25
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\AsymmetricKey' not found in wp-content/plugins/bizuno-accounting/assets/phpseclib3/phpseclib/phpseclib/phpseclib/Crypt/DH.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function bizuno\\bizAutoLoad() in wp-content/plugins/bizuno-accounting/controllers/phreebooks/journal.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function bizuno\\bizAutoLoad() in wp-content/plugins/bizuno-accounting/controllers/phreebooks/journals/j12.php:26
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bizuno-accounting/assets/phpseclib3/paragonie/constant_time_encoding/tests/Base64UrlSafeTest.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bizuno-accounting/locale/en_US/langByRef.php on line 65
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Base' not found in wp-content/plugins/bizuno-accounting/assets/phpseclib3/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/TwistedEdwards.php:42
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/bizuno-accounting/assets/phpseclib3/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP160t1.php:34
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\secp384r1' not found in wp-content/plugins/bizuno-accounting/assets/phpseclib3/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistp384.php:18
- > PHP Notice
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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
bizuno-accounting/bizuno-accounting.php 85% from 13 tests
Analyzing the main PHP file in "Bizuno ERP/Accounting" version 6.7.4
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 258 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 0% 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 fix the following items
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/bizuno-accounting/assets/TCPDF/examples/data/cert/tcpdf.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 568 | 93 | 126 | 131,197 |
PHP | 902 | 13,998 | 58,451 | 128,104 |
JavaScript | 42 | 1,294 | 2,500 | 31,302 |
XML | 59 | 4 | 0 | 20,864 |
SVG | 3 | 1 | 1 | 1,882 |
JSON | 7 | 0 | 0 | 547 |
Markdown | 6 | 107 | 0 | 298 |
YAML | 1 | 2 | 0 | 25 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,422)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 500)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,422.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 500.00 |
Code structure | ||
---|---|---|
Namespaces | 55 | |
Interfaces | 5 | |
Traits | 7 | |
Classes | 590 | |
▷ Abstract classes | 207 | 35.08% |
▷ Concrete classes | 383 | 64.92% |
▷ Final classes | 21 | 5.48% |
Methods | 3,810 | |
▷ Static methods | 582 | 15.28% |
▷ Public methods | 2,641 | 69.32% |
▷ Protected methods | 561 | 14.72% |
▷ Private methods | 608 | 15.96% |
Functions | 326 | |
▷ Named functions | 303 | 92.94% |
▷ Anonymous functions | 23 | 7.06% |
Constants | 561 | |
▷ Global constants | 223 | 39.75% |
▷ Class constants | 338 | 60.25% |
▷ Public constants | 338 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
898 compressed PNG files occupy 1.66MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/icons/nuvola/16x16/view_top_bottom.png | 0.75KB | 0.97KB | 0.00% |
view/icons/default/22x22/edit-delete.png | 1.18KB | 1.30KB | 0.00% |
assets/jquery-easyui/themes/metro/images/spinner_arrows.png | 0.15KB | 0.14KB | ▼ 4.70% |
view/icons/default/16x16/view-fullscreen.png | 0.63KB | 0.50KB | ▼ 20.77% |
assets/jquery-easyui/themes/black/images/tree_icons.png | 3.01KB | 2.21KB | ▼ 26.57% |