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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼1.20ms] Passed 4 tests
A check of server-side resources used by Add Custom Tags To WooCommerce Products
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.50 ▲1.37 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.79 ▼10.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.81 ▲4.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 102.23 ▲11.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.25 ▼0.68 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Add Custom Tags To WooCommerce Products
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.27 ▼1.48 | 1.80 ▲0.04 | 47.59 ▲4.15 |
Dashboard /wp-admin | 2,218 ▲15 | 4.85 ▼0.01 | 105.41 ▼32.41 | 39.16 ▼18.16 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.02 | 38.72 ▼3.64 | 35.73 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.20 ▲0.23 | 649.18 ▼33.06 | 61.57 ▲8.49 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▼0.05 | 97.81 ▼10.36 | 45.15 ▼4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/add-tag-to-woocommerce-products/admin/display_setting_page.php:6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/add-tag-to-woocommerce-products/admin/display_setting_page.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/add-tag-to-woocommerce-products/wc_tag_on_products.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Dashboard page for settings), #2 (Dashboard page for editing a tag text and number of days), #3 (Thats how tag look on frontend end on products)
add-tag-to-woocommerce-products/wc_tag_on_products.php 92% from 13 tests
The primary PHP file in "Add Custom Tags To WooCommerce Products" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("add-tag-to-woocommerce-products.php" instead of "wc_tag_on_products.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 plugin257 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 589 | 308 | 241 |
CSS | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 19 | 82.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 17.39% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 80.90KB | 27.74KB | ▼ 65.71% |
screenshot-2.png | 23.17KB | 9.50KB | ▼ 59.00% |
screenshot-1.png | 47.65KB | 19.35KB | ▼ 59.39% |