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.15MB] [CPU: ▼2.66ms] Passed 4 tests
Server-side resources used by WooCommerce Product Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.22 ▲4.27 |
Dashboard /wp-admin | 3.45 ▲0.15 | 49.40 ▲0.50 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 46.43 ▼0.60 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 94.69 ▼7.96 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 34.21 ▼2.59 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Product Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.34 ▼1.05 | 1.64 ▼0.20 | 41.42 ▲0.81 |
Dashboard /wp-admin | 2,209 ▲23 | 4.86 ▼0.21 | 104.19 ▼0.09 | 42.46 ▲3.65 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.04 | 36.42 ▼0.63 | 33.98 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.48 ▼5.73 | 648.04 ▼20.22 | 53.64 ▼0.98 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.05 | 95.50 ▼4.00 | 41.91 ▼2.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-product-generator/views/admin-generator.php:12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-product-generator/woocommerce-product-generator.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-product-generator/woocommerce-product-generator.php:1156
- > PHP Fatal error
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 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #6 in woocommerce-product-generator/assets to your readme.txt
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woocommerce-product-generator/woocommerce-product-generator.php 92% from 13 tests
The main PHP script in "WooCommerce Product Generator" version 2.1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.5" instead of "5.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,045 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 4,925 |
PHP | 2 | 152 | 242 | 915 |
JavaScript | 3 | 29 | 61 | 193 |
CSS | 1 | 0 | 19 | 9 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 144.00 |
▷ Minimum class complexity | 144.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 26 | 100.00% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/placeholder.png | 12.08KB | 4.35KB | ▼ 63.97% |