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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▲3.62ms] Passed 4 tests
Analyzing server-side resources used by Dynamic Product Titles for Variant Options
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.94 ▼0.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 59.45 ▲12.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.84 ▲3.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 109.67 ▲16.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.16 ▼1.36 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Dynamic Product Titles for Variant Options: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.55 ▼1.03 | 1.65 ▼0.04 | 39.76 ▼0.90 |
Dashboard /wp-admin | 2,209 ▲18 | 4.84 ▼0.01 | 101.14 ▼3.89 | 43.49 ▼1.77 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.00 | 39.65 ▲5.81 | 35.70 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.75 ▼5.56 | 690.27 ▲66.87 | 57.57 ▲0.47 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.17 ▲0.00 | 96.91 ▲0.75 | 44.18 ▼2.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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
Even though everything seems fine, this is not 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/dynamic-product-titles-for-variant-options/dynamic-product-titles-for-variant-options.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dynamic-product-titles-for-variant-options/dynamic-product-titles-for-variant-options-functions.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: variation, dynamic, woocommerce, product, variant...
dynamic-product-titles-for-variant-options/dynamic-product-titles-for-variant-options.php Passed 13 tests
This is the main PHP file of "Dynamic Product Titles for Variant Options" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
136 characters long description:
Dynamically change a variant product title on the product page to show the selected variant option name at the end of the default title.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin48 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 9 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin