Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.76ms] Passed 4 tests
Analyzing server-side resources used by Regenerate product lookup table for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.23 ▲0.23 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.57 ▼3.90 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.93 ▲4.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.28 ▼7.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.51 ▲4.47 |
Woocommerce regenerate product lookup table /wp-admin/options-general.php?page=smnwcrpl | 3.24 | 30.05 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
smnwcrpl_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Regenerate product lookup table for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲66 | 13.18 ▼1.22 | 1.63 ▼0.34 | 41.54 ▼4.29 |
Dashboard /wp-admin | 2,229 ▲41 | 4.83 ▼0.04 | 107.57 ▼7.33 | 44.30 ▼6.71 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.04 ▲0.04 | 37.23 ▼2.43 | 33.87 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.10 ▲5.46 | 684.72 ▼13.78 | 61.12 ▲8.35 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.23 ▲0.00 | 96.61 ▼19.43 | 43.21 ▼5.94 |
Woocommerce regenerate product lookup table /wp-admin/options-general.php?page=smnwcrpl | 824 | 2.06 | 27.64 | 29.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: woo, woo commerce
regenerate-product-lookup-table-for-woocommerce/wc-regenerate-product-lookup.php 85% from 13 tests
The primary PHP file in "Regenerate product lookup table for WooCommerce" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("regenerate-product-lookup-table-for-woocommerce.php" instead of "wc-regenerate-product-lookup.php")
- 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
Everything looks great! No dangerous files found in this plugin190 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 87 | 89 | 190 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 15 | |
▷ Named functions | 15 | 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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.PNG | 45.39KB | 23.19KB | ▼ 48.91% |