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 gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.17ms] Passed 4 tests
Server-side resources used by F4 Total Stock Value for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.10 ▼0.87 |
Dashboard /wp-admin | 3.41 ▲0.07 | 46.81 ▼11.08 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.08 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 83.83 ▼5.43 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.05 ▼0.54 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for F4 Total Stock Value for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲54 | 14.26 ▼0.27 | 1.69 ▲0.23 | 48.40 ▲7.60 |
Dashboard /wp-admin | 2,195 ▲18 | 5.53 ▼0.14 | 83.66 ▼5.78 | 39.97 ▼8.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.06 | 33.27 ▼3.05 | 35.28 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 18.25 ▼4.86 | 642.58 ▼33.63 | 59.87 ▼7.75 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.26 ▲0.11 | 94.14 ▼2.04 | 40.91 ▼3.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'F4\\WCTSV\\Core\\AbstractHooks' not found in wp-content/plugins/f4-total-stock-value-for-woocommerce/modules/Core/Hooks.php:13
- > PHP Fatal error
Uncaught Error: Class 'F4\\WCTSV\\Core\\AbstractHooks' not found in wp-content/plugins/f4-total-stock-value-for-woocommerce/modules/Analytics/Hooks.php:16
- > PHP Fatal error
Uncaught Error: Class 'F4\\WCTSV\\Analytics\\Helpers' not found in wp-content/plugins/f4-total-stock-value-for-woocommerce/modules/Analytics/views/report.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: woocommerce, stock, stock value, cost of goods, shop...
f4-total-stock-value-for-woocommerce/f4-total-stock-value-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "F4 Total Stock Value for WooCommerce" version 2.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin809 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 166 | 427 | 656 |
CSS | 1 | 29 | 9 | 153 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 38 | 100.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 14 | |
▷ Global constants | 14 | 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