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.01MB] [CPU: ▼11.12ms] Passed 4 tests
This is a short check of server-side resources used by CBX Accounting & Bookkeeping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.94 ▼9.80 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.64 ▼16.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.57 ▼0.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.04 ▼15.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.51 ▼2.57 |
Server storage [IO: ▲4.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 433 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for CBX Accounting & Bookkeeping
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.09 | 1.93 ▲0.04 | 45.86 ▲1.58 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.04 | 92.20 ▼6.89 | 41.50 ▼0.81 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▼0.00 | 39.27 ▲0.31 | 34.79 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.57 ▲0.25 | 634.32 ▼51.19 | 55.28 ▼0.21 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.27 ▲0.10 | 103.04 ▼15.00 | 42.40 ▼6.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/cbxwpsimpleaccounting/includes/fpdf/exfpdf.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/cbxwpsimpleaccounting/admin/partials/admin-addexpinc-display.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/cbxwpsimpleaccounting/admin/partials/admin-overview-display.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cbxwpsimpleaccounting/includes/class-cbxwpsimpleaccounting-loglist.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/cbxwpsimpleaccounting/includes/class-cbxwpsimpleaccounting-catlist.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/cbxwpsimpleaccounting/includes/class-cbxwpsimpleaccounting-acclist.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/cbxwpsimpleaccounting/includes/class-cbxwpsimpleaccounting-catlist.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/cbxwpsimpleaccounting/admin/partials/admin-viewexpinc-display.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cbxwpsimpleaccounting/includes/class-cbxwpsimpleaccounting-catlist.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/cbxwpsimpleaccounting/includes/class-cbxwpsimpleaccounting-loglist.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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 your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in cbxwpsimpleaccounting/assets to your readme.txt
cbxwpsimpleaccounting/cbxwpsimpleaccounting.php Passed 13 tests
The main file in "CBX Accounting & Bookkeeping" v. 1.3.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
Accounting solution inside WordPress for SME businness
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin76,808 lines of code in 377 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 47 | 1,922 | 826 | 32,654 |
JavaScript | 265 | 5,160 | 3,473 | 24,142 |
PHP | 51 | 2,915 | 2,969 | 18,062 |
Sass | 8 | 147 | 10 | 809 |
SVG | 1 | 0 | 0 | 543 |
JSON | 1 | 0 | 0 | 435 |
LESS | 2 | 19 | 17 | 88 |
HTML | 2 | 0 | 24 | 75 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 118.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 443.00 |
Average method complexity | 5.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 543 | |
▷ Static methods | 49 | 9.02% |
▷ Public methods | 417 | 76.80% |
▷ Protected methods | 99 | 18.23% |
▷ Private methods | 27 | 4.97% |
Functions | 9 | |
▷ Named functions | 4 | 44.44% |
▷ Anonymous functions | 5 | 55.56% |
Constants | 15 | |
▷ Global constants | 7 | 46.67% |
▷ Class constants | 8 | 53.33% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/vendor/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
assets/images/idea.png | 7.19KB | 1.96KB | ▼ 72.79% |
assets/images/icon_move.png | 0.22KB | 0.22KB | ▼ 0.89% |
assets/vendor/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |