Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.37ms] Passed 4 tests
An overview of server-side resources used by simple product table for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.91 ▼1.85 |
Dashboard /wp-admin | 3.36 ▲0.01 | 46.91 ▼16.93 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.28 ▼3.44 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 90.39 ▼7.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.43 ▼0.29 |
Add New /wp-admin/post-new.php?post_type=spt_product_table | 3.32 | 44.98 |
Product Tables /wp-admin/edit.php?post_type=spt_product_table | 3.32 | 38.24 |
Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by simple product table for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲189 | 13.74 ▼0.61 | 12.81 ▲11.23 | 46.43 ▲5.04 |
Dashboard /wp-admin | 2,216 ▲39 | 5.52 ▼0.13 | 87.96 ▼6.72 | 39.87 ▼0.48 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.98 ▼0.03 | 38.95 ▼1.30 | 35.66 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 18.01 ▼4.99 | 628.57 ▲0.73 | 68.92 ▲13.91 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.23 ▲0.04 | 96.92 ▼10.37 | 45.71 ▲0.71 |
Add New /wp-admin/post-new.php?post_type=spt_product_table | 1,564 | 2.71 | 58.25 | 71.21 |
Product Tables /wp-admin/edit.php?post_type=spt_product_table | 1,093 | 2.42 | 35.92 | 31.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-product-table-for-woocommerce/public/partials/sptable-public-display.php
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: "#"
simple-product-table-for-woocommerce/sptable.php 85% from 13 tests
The main PHP file in "simple product table for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-product-table-for-woocommerce.php" instead of "sptable.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,203 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,291 | 358 | 5,153 |
PHP | 12 | 136 | 553 | 578 |
CSS | 4 | 65 | 15 | 472 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 8 | 23.53% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
No PNG files were detected