Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲4.95MB] [CPU: ▲18.16ms] Passed 4 tests
This is a short check of server-side resources used by Finpose - Accounting for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.78 ▲5.32 | 60.40 ▲17.07 |
Dashboard /wp-admin | 8.80 ▲5.49 | 66.88 ▲19.61 |
Posts /wp-admin/edit.php | 8.80 ▲5.44 | 72.51 ▲8.97 |
Add New Post /wp-admin/post-new.php | 9.43 ▲3.54 | 120.78 ▲28.62 |
Media Library /wp-admin/upload.php | 8.80 ▲5.57 | 60.36 ▲26.98 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.80 | 61.23 |
Server storage [IO: ▲6.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 352 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_gdpr |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-posts |
fs_accounts |
can_compress_scripts |
fs_active_plugins |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Finpose - Accounting for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.18 ▼1.17 | 1.72 ▲0.10 | 28.72 ▼10.98 |
Dashboard /wp-admin | 2,250 ▲62 | 4.88 ▲0.00 | 109.51 ▲1.97 | 43.69 ▲3.92 |
Posts /wp-admin/edit.php | 2,133 ▲41 | 2.01 ▼0.04 | 42.15 ▲6.19 | 39.95 ▲8.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲20 | 22.95 ▼0.16 | 649.93 ▼40.97 | 58.67 ▲6.18 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.22 ▲0.02 | 97.33 ▼13.65 | 46.16 ▲4.42 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,085 | 1.84 | 24.02 | 27.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/fin-accounting-for-woocommerce/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- fs_gdpr
- fs_debug_mode
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- fs_accounts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- fs_active_plugins
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fin-accounting-for-woocommerce/admin/views/dashboard.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fin-accounting-for-woocommerce/admin/views/settings.php:8
- > PHP Warning
Use of undefined constant FINPOSE_WPADMIN_URL - assumed 'FINPOSE_WPADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fin-accounting-for-woocommerce/admin/views/vendors.php on line 6
- > PHP Warning
Use of undefined constant FINPOSE_WPADMIN_URL - assumed 'FINPOSE_WPADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fin-accounting-for-woocommerce/admin/views/accounts.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fin-accounting-for-woocommerce/admin/views/accounts.php:7
- > PHP Fatal error
Uncaught Error: Class 'fin_app' not found in wp-content/plugins/fin-accounting-for-woocommerce/classes/taxes.class.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fin-accounting-for-woocommerce/admin/views/spendings.php:7
- > PHP Fatal error
Uncaught Error: Class 'fin_app' not found in wp-content/plugins/fin-accounting-for-woocommerce/classes/vendors.class.php:12
- > PHP Warning
Use of undefined constant FINPOSE_WPADMIN_URL - assumed 'FINPOSE_WPADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fin-accounting-for-woocommerce/admin/views/inventory.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fin-accounting-for-woocommerce/admin/views/vendors.php:8
- > PHP Fatal error
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 Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: cogs, accounting, profit, cost, report...
fin-accounting-for-woocommerce/finpose.php 77% from 13 tests
The main PHP script in "Finpose - Accounting for WooCommerce" version 4.5.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fin-accounting-for-woocommerce.php" instead of "finpose.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "4.0.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin72,054 lines of code in 241 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 7,906 | 16,790 | 37,879 |
PO File | 43 | 9,299 | 11,567 | 19,876 |
JavaScript | 22 | 1,324 | 1,682 | 11,539 |
SVG | 22 | 0 | 16 | 1,314 |
CSS | 15 | 213 | 27 | 1,167 |
Markdown | 2 | 79 | 0 | 252 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 72.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,272 | |
▷ Static methods | 181 | 14.23% |
▷ Public methods | 897 | 70.52% |
▷ Protected methods | 15 | 1.18% |
▷ Private methods | 360 | 28.30% |
Functions | 105 | |
▷ Named functions | 104 | 99.05% |
▷ Anonymous functions | 1 | 0.95% |
Constants | 131 | |
▷ Global constants | 106 | 80.92% |
▷ Class constants | 25 | 19.08% |
▷ Public constants | 25 | 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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lib/jqueryui/images/ui-icons_555555_256x240.png | 3.68KB | 4.18KB | 0.00% |
assets/lib/jqueryui/images/ui-icons_444444_256x240.png | 3.68KB | 4.18KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |