Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/woo-add-custom-text/woocommerce-add-custom-text.php+12
Constant Woo_ACT already defined
Server metrics [RAM: ▼1.99MB] [CPU: ▼62.08ms] Passed 4 tests
A check of server-side resources used by Woocommerce Add Custom Text On Single Product Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.45 | 5.19 ▼44.44 |
Dashboard /wp-admin | 2.07 ▼1.31 | 5.55 ▼59.40 |
Posts /wp-admin/edit.php | 2.07 ▼1.32 | 6.82 ▼42.57 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.86 | 5.20 ▼101.92 |
Media Library /wp-admin/upload.php | 2.07 ▼1.20 | 5.95 ▼30.29 |
Single Product Page /wp-admin/admin.php?page=single-product-page | 2.07 | 6.07 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Add Custom Text On Single Product Page
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲21 | 14.24 ▼0.49 | 1.70 ▼0.86 | 42.56 ▲0.46 |
Dashboard /wp-admin | 2,198 ▲24 | 5.65 ▲0.07 | 85.56 ▼3.85 | 38.25 ▼3.33 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.03 | 33.66 ▼3.77 | 33.85 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.48 ▲2.32 | 617.37 ▼71.96 | 59.42 ▲6.39 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.18 ▲0.00 | 98.05 ▼20.42 | 46.73 ▼5.32 |
Single Product Page /wp-admin/admin.php?page=single-product-page | 1,496 | 6.53 | 129.53 | 59.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/woo-add-custom-text/woocommerce-add-custom-text.php+12
Constant Woo_ACT already defined
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=single-product-page
- > Notice in wp-content/plugins/woo-add-custom-text/woocommerce-add-custom-text.php+12
Constant Woo_ACT already defined
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-add-custom-text/woocommerce-add-custom-text.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in woo-add-custom-text/assets to your readme.txt
woo-add-custom-text/woocommerce-add-custom-text.php 92% from 13 tests
"Woocommerce Add Custom Text On Single Product Page" version 3.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-add-custom-text.php" instead of "woocommerce-add-custom-text.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 plugin56 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 14 | 56 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin