Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.36ms] Passed 4 tests
An overview of server-side resources used by Stock Tracking & Reporting for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.41 ▲1.99 |
Dashboard /wp-admin | 3.33 ▼0.01 | 47.28 ▼15.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.44 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.47 ▼20.07 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.39 ▲1.08 |
Server storage [IO: ▲0.32MB] [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: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Stock Tracking & Reporting for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.22 ▼1.36 | 1.77 ▼0.22 | 44.04 ▲0.63 |
Dashboard /wp-admin | 2,203 ▲15 | 4.85 ▼0.04 | 111.55 ▲4.21 | 43.19 ▼1.15 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.01 | 32.43 ▼2.53 | 34.34 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.22 ▲0.11 | 592.97 ▼66.57 | 52.02 ▼2.95 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.02 | 92.61 ▼4.45 | 42.90 ▲0.23 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- 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 | 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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Innocow\\Stock_Records\\Models\\Transaction\\Mappers\\Transaction_Mapper_WPDB' not found in wp-content/plugins/stock-tracking-reporting-for-woocommerce/src/models/transaction/mappers/transaction_mapper_wpdb_update.php:14
- > PHP Fatal error
Uncaught Error: Class 'Innocow\\Stock_Records\\Models\\Transaction\\Mappers\\Transaction_Mapper_WPDB' not found in wp-content/plugins/stock-tracking-reporting-for-woocommerce/src/models/transaction/mappers/transaction_mapper_wpdb_create.php:17
- > PHP Fatal error
Uncaught Error: Class 'Innocow\\Stock_Records\\Models\\Transaction\\Mappers\\Transaction_Mapper_WPDB' not found in wp-content/plugins/stock-tracking-reporting-for-woocommerce/src/models/transaction/mappers/transaction_mapper_wpdb_search.php:19
- > PHP Fatal error
Uncaught Error: Class 'Innocow\\Stock_Records\\Models\\Transaction\\Mappers\\Transaction_Mapper_WPDB' not found in wp-content/plugins/stock-tracking-reporting-for-woocommerce/src/models/transaction/mappers/transaction_mapper_wpdb_read.php:14
- > PHP Fatal error
Uncaught Error: Class 'Innocow\\Stock_Records\\Models\\Transaction\\Mappers\\Transaction_Mapper_WPDB' not found in wp-content/plugins/stock-tracking-reporting-for-woocommerce/src/models/transaction/mappers/transaction_mapper_wpdb_delete.php:14
- > PHP Fatal error
Uncaught Error: Class 'Innocow\\Stock_Records\\Storage\\WPDB' not found in wp-content/plugins/stock-tracking-reporting-for-woocommerce/src/models/transaction/mappers/transaction_mapper_wpdb.php:18
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: record, tracking, woocommerce, track, inventory...
stock-tracking-reporting-for-woocommerce/stock-tracking-reporting-for-woocommerce.php 92% from 13 tests
"Stock Tracking & Reporting for Woocommerce" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin6,112 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 2,200 | 1,470 | 4,369 |
JavaScript | 6 | 508 | 20 | 1,075 |
PO File | 1 | 109 | 169 | 381 |
CSS | 3 | 88 | 37 | 287 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 241 | |
▷ Static methods | 28 | 11.62% |
▷ Public methods | 219 | 90.87% |
▷ Protected methods | 1 | 0.41% |
▷ Private methods | 21 | 8.71% |
Functions | 38 | |
▷ Named functions | 9 | 23.68% |
▷ Anonymous functions | 29 | 76.32% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin