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.00MB] [CPU: ▼2.50ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Multi Warehouses - Location Based Inventory Management
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.34 ▼3.84 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.21 ▼4.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.98 ▼1.56 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 104.64 ▲10.58 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.40 ▼0.53 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 116 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce Multi Warehouses - Location Based Inventory Management
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.28 ▼0.02 | 1.73 ▲0.05 | 44.57 ▲6.25 |
Dashboard /wp-admin | 2,206 ▼0 | 4.86 ▲0.05 | 101.95 ▼1.05 | 37.85 ▼1.72 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.01 | 37.68 ▼2.11 | 33.97 ▼6.08 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.49 ▲0.26 | 587.15 ▼109.57 | 48.98 ▼8.05 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.02 | 95.38 ▼5.14 | 41.81 ▲0.17 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/geoip2/geoip2/src/Model/Domain.php:19
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/geoip2/geoip2/src/Record/Postal.php:20
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\HttpException' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/geoip2/geoip2/src/Exception/InvalidRequestException.php:9
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/geoip2/geoip2/src/Model/Isp.php:25
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/maxmind/web-service-common/src/Exception/PermissionRequiredException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/geoip2/geoip2/src/Record/Subdivision.php:29
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/geoip2/geoip2/src/Exception/AddressNotFoundException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/geoip2/geoip2/src/Record/City.php:23
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/warehouse-popups-woocommerce/public/vendor/geoip2/geoip2/src/Record/MaxMind.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #6 in warehouse-popups-woocommerce/assets to your readme.txt
- Tags: There are too many tags (11 tag instead of maximum 10)
warehouse-popups-woocommerce/warehouse-popups-woocommerce.php Passed 13 tests
"Woocommerce Multi Warehouses - Location Based Inventory Management" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
Manages product inventory, currency, prices, & payments across multiple warehouses with a single site WP + Woocommerce install.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected8,634 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 1,012 | 2,294 | 6,433 |
Markdown | 7 | 370 | 0 | 875 |
C | 1 | 97 | 18 | 589 |
JSON | 5 | 0 | 0 | 384 |
JavaScript | 2 | 48 | 73 | 226 |
CSS | 2 | 7 | 8 | 47 |
Bourne Shell | 1 | 20 | 0 | 40 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 12.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 3 | 5.00% |
▷ Concrete classes | 57 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 263 | |
▷ Static methods | 62 | 23.57% |
▷ Public methods | 195 | 74.14% |
▷ Protected methods | 1 | 0.38% |
▷ Private methods | 67 | 25.48% |
Functions | 12 | |
▷ Named functions | 7 | 58.33% |
▷ Anonymous functions | 5 | 41.67% |
Constants | 21 | |
▷ Global constants | 3 | 14.29% |
▷ Class constants | 18 | 85.71% |
▷ Public constants | 18 | 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
No PNG files were detected