Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.83MB] [CPU: ▲3.24ms] Passed 4 tests
An overview of server-side resources used by ATUM WooCommerce Inventory Management and Stock Tracking
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 42.30 ▲2.26 |
Dashboard /wp-admin | 4.14 ▲0.84 | 53.63 ▲3.34 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 48.72 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 97.21 ▲4.99 |
Media Library /wp-admin/upload.php | 4.06 ▲0.83 | 39.33 ▲6.89 |
Server storage [IO: ▲32.30MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- The filesystem usage should be lower than 25MB (currently using 32.30MB)
Filesystem: 1,227 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for ATUM WooCommerce Inventory Management and Stock Tracking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.57 ▲0.30 | 2.21 ▲0.58 | 42.13 ▼3.86 |
Dashboard /wp-admin | 2,207 ▲30 | 5.52 ▼0.09 | 84.96 ▼13.52 | 38.75 ▼8.66 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.00 ▲0.04 | 38.64 ▼3.63 | 34.19 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,538 ▲11 | 23.13 ▼0.04 | 646.91 ▲18.45 | 57.48 ▲5.24 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.23 ▲0.02 | 98.12 ▼9.50 | 43.54 ▲0.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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 | 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
The following issues need your attention
- 280× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/mpdf/mpdf/src/Tag/Em.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/mpdf/mpdf/src/Image/ImageProcessor.php:20
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/mpdf/mpdf/src/Tag/Code.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/mpdf/mpdf/src/Tag/InlineTag.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/mpdf/mpdf/src/Tag/TextCircle.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/mpdf/mpdf/src/Tag/H2.php:5
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/madcoda/php-youtube-api/src/YoutubeServiceProviderLaravel5.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/mpdf/psr-http-message-shim/src/Stream.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/mpdf/mpdf/src/Tag/Strike.php:5
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/atum-stock-manager-for-woocommerce/vendor/setasign/fpdi/src/FpdfTpl.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: You are using too many tags: 18 tag instead of maximum 10
atum-stock-manager-for-woocommerce/atum-stock-manager-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "ATUM WooCommerce Inventory Management and Stock Tracking" version 1.9.35
68 characters long description:
The ultimate stock management plugin for serious WooCommerce sellers
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected173,894 lines of code in 1,021 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 672 | 25,806 | 32,943 | 113,432 |
JSON | 22 | 0 | 0 | 19,804 |
Sass | 123 | 3,637 | 879 | 16,790 |
JavaScript | 32 | 2,318 | 1,013 | 10,651 |
TypeScript | 83 | 3,566 | 2,326 | 8,142 |
Markdown | 22 | 666 | 0 | 1,912 |
CSS | 28 | 284 | 212 | 1,749 |
SVG | 14 | 2 | 3 | 802 |
YAML | 15 | 92 | 6 | 343 |
XML | 7 | 36 | 37 | 218 |
Twig | 2 | 14 | 0 | 48 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 7,027)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 45.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,027.00 |
Average method complexity | 7.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 97 | |
Interfaces | 26 | |
Traits | 15 | |
Classes | 477 | |
▷ Abstract classes | 25 | 5.24% |
▷ Concrete classes | 452 | 94.76% |
▷ Final classes | 24 | 5.31% |
Methods | 3,392 | |
▷ Static methods | 450 | 13.27% |
▷ Public methods | 2,876 | 84.79% |
▷ Protected methods | 249 | 7.34% |
▷ Private methods | 267 | 7.87% |
Functions | 68 | |
▷ Named functions | 6 | 8.82% |
▷ Anonymous functions | 62 | 91.18% |
Constants | 532 | |
▷ Global constants | 16 | 3.01% |
▷ Class constants | 516 | 96.99% |
▷ Public constants | 516 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 1.22MB with 0.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dashboard/card-subscription-bg.png | 8.83KB | 3.65KB | ▼ 58.60% |
assets/images/dashboard/widget-thumb-orders.png | 14.00KB | 6.35KB | ▼ 54.67% |
assets/images/dashboard/widget-thumb-promo-sales.png | 13.19KB | 6.35KB | ▼ 51.84% |
assets/images/settings/hc-mode.png | 246.22KB | 74.37KB | ▼ 69.79% |
assets/images/dashboard/card-add-ons-bg.png | 25.07KB | 4.71KB | ▼ 81.20% |