Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.34ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Unit Of Measure
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.07 ▼2.06 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.49 ▲0.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.45 ▼5.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.88 ▼9.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.11 ▲1.24 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Unit Of Measure
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.02 | 1.65 ▼0.01 | 43.81 ▲0.99 |
Dashboard /wp-admin | 2,195 ▲17 | 5.61 ▼0.30 | 86.73 ▼13.19 | 37.25 ▼0.70 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.97 ▼0.01 | 35.58 ▼5.02 | 32.92 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼4 | 22.95 ▼0.22 | 657.84 ▼29.65 | 58.77 ▼15.99 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.34 ▲0.13 | 97.14 ▼6.37 | 45.27 ▼0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-unit-of-measure/admin/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-unit-of-measure/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-unit-of-measure/includes/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-unit-of-measure/public/index.php on line 2
- > PHP Warning
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 important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in woocommerce-unit-of-measure/assets to your readme.txt
woocommerce-unit-of-measure/woocommerce-unit-of-measure.php 85% from 13 tests
The principal PHP file in "WooCommerce Unit Of Measure" v. 3.0.3 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "6.0.0")
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
Good job! No executable or dangerous file extensions detected131 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 33 | 191 | 110 |
PO File | 1 | 2 | 2 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 68.62KB | 20.64KB | ▼ 69.92% |
assets/screenshot-1.png | 46.15KB | 13.53KB | ▼ 70.68% |