Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.60ms] Passed 4 tests
Server-side resources used by WooCommerce POS Inventory Count
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.57 ▼2.30 |
Dashboard /wp-admin | 3.43 ▲0.08 | 49.92 ▼19.39 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.77 ▲3.69 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 99.74 ▼11.23 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.46 ▲2.52 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce POS Inventory Count
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.19 | 1.72 ▲0.11 | 41.83 ▼1.21 |
Dashboard /wp-admin | 2,193 ▲19 | 5.62 ▼0.02 | 85.16 ▼7.81 | 38.88 ▼8.99 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▼0.03 | 42.71 ▲3.71 | 36.74 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,535 ▼10 | 23.27 ▲0.09 | 675.97 ▼3.92 | 59.05 ▲10.77 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▲0.01 | 106.60 ▲5.21 | 46.49 ▲1.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
woo-inventory-count/woopos-wcic.php 92% from 13 tests
The entry point to "WooCommerce POS Inventory Count" version 21.11.08 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-inventory-count.php" instead of "woopos-wcic.php")
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 plugin744 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 58 | 652 |
CSS | 1 | 0 | 0 | 64 |
JavaScript | 1 | 5 | 1 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 65.73KB | 22.69KB | ▼ 65.48% |
assets/screenshot-1.png | 96.79KB | 34.06KB | ▼ 64.81% |
assets/woopos-logo-150px.png | 9.49KB | 3.73KB | ▼ 60.65% |
assets/banner-772x250.png | 102.45KB | 39.22KB | ▼ 61.71% |
assets/icon-128x128.png | 24.11KB | 8.40KB | ▼ 65.17% |