Benchmarks
Plugin footprint 83% 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.31MB] [CPU: ▲2.88ms] Passed 4 tests
A check of server-side resources used by WooCommerce Accounting Report
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 41.92 ▲1.85 |
Dashboard /wp-admin | 3.64 ▲0.33 | 49.09 ▲0.39 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 49.87 ▲1.28 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 98.20 ▲13.80 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.98 ▲7.99 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 117 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Accounting Report
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲30 | 14.68 ▲0.36 | 1.59 ▼0.32 | 40.14 ▼1.27 |
Dashboard /wp-admin | 2,200 ▲20 | 5.59 ▼0.04 | 91.96 ▲0.51 | 41.76 ▼5.91 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.96 ▼0.04 | 39.95 ▲2.37 | 35.02 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.42 ▼0.28 | 645.74 ▲9.49 | 63.32 ▲9.82 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.15 ▲0.01 | 97.25 ▼5.98 | 39.89 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php:22
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Warning
require_once(wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jp9eaa728d9d21d44c05f959d589f4c454\\al2_12_0\\wp_normalize_path() in wp-content/plugins/woo-accounting-report/vendor/jetpack-autoloader/class-path-processor.php:73
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/woo-accounting-report/src/plugin/Rest/RestLogController.php:11
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- License uri: Please fix this invalid url: "bjorntech.com/accountingreport"
woo-accounting-report/woo-accounting-report.php 85% from 13 tests
The main PHP file in "WooCommerce Accounting Report" ver. 3.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "4.0")
Code Analysis Passed 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 plugin9,628 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 1,433 | 2,661 | 7,348 |
JavaScript | 24 | 327 | 29 | 1,632 |
Markdown | 4 | 168 | 0 | 386 |
JSON | 4 | 0 | 0 | 210 |
CSS | 2 | 10 | 0 | 44 |
XML | 2 | 0 | 0 | 8 |
Sass | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 8 | |
Classes | 56 | |
▷ Abstract classes | 1 | 1.79% |
▷ Concrete classes | 55 | 98.21% |
▷ Final classes | 0 | 0.00% |
Methods | 290 | |
▷ Static methods | 63 | 21.72% |
▷ Public methods | 200 | 68.97% |
▷ Protected methods | 47 | 16.21% |
▷ Private methods | 43 | 14.83% |
Functions | 8 | |
▷ Named functions | 1 | 12.50% |
▷ Anonymous functions | 7 | 87.50% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin