Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼2.97ms] Passed 4 tests
This is a short check of server-side resources used by Product Subtitle For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 38.55 ▼0.70 |
Dashboard /wp-admin | 3.63 ▲0.33 | 49.74 ▼0.04 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 50.66 ▲3.23 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 87.20 ▼14.35 |
Media Library /wp-admin/upload.php | 3.55 ▲0.33 | 37.76 ▲4.14 |
Server storage [IO: ▲3.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 574 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Subtitle For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.12 ▼0.12 | 1.75 ▼0.09 | 42.81 ▼2.00 |
Dashboard /wp-admin | 2,189 ▲11 | 5.51 ▼0.19 | 81.71 ▼29.43 | 35.39 ▼1.33 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.95 ▼0.08 | 34.40 ▼2.49 | 31.69 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.44 ▲5.43 | 600.97 ▼48.23 | 77.27 ▼20.60 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▼0.02 | 96.87 ▼4.55 | 42.37 ▼4.30 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Varunsridharan\\WordPress\\WP_Conditional_Logic\\Compare' not found in wp-content/plugins/wc-product-subtitle/vendor/varunsridharan/wp-conditional-logic/src/Validators.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/wc-product-subtitle/vendor/wponion/wponion/includes/templates/wp-modern/help_tabs.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/wc-product-subtitle/vendor/wponion/wponion/includes/templates/wp-lite/help_tabs.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function vsp_list_log_files() in wp-content/plugins/wc-product-subtitle/vendor/varunsridharan/vsp-framework/views/log-viewer.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPOnion\\DB\\Storage\\Base' not found in wp-content/plugins/wc-product-subtitle/vendor/wponion/wponion/core/db/storage/class-comment.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPOnion\\DB\\Storage\\Base' not found in wp-content/plugins/wc-product-subtitle/vendor/wponion/wponion/core/db/storage/class-user.php:12
- > PHP Fatal error
Trait 'WPOnion\\Traits\\Internal\\Unique' not found in wp-content/plugins/wc-product-subtitle/vendor/wponion/wponion/core/abstract/abstract-custom-db-storage-handler.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/wc-product-subtitle/vendor/wponion/wponion/includes/templates/wp-lite/dashboard_widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/wc-product-subtitle/vendor/wponion/wponion/includes/templates/wp/user_profile.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/wc-product-subtitle/vendor/wponion/wponion/includes/templates/wc/widgets.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
wc-product-subtitle/wc-product-subtitle.php 92% from 13 tests
The main PHP script in "Product Subtitle For WooCommerce" version 4.6.2 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin36,480 lines of code in 490 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 467 | 6,180 | 21,265 | 36,264 |
SVG | 2 | 0 | 0 | 108 |
Markdown | 7 | 29 | 0 | 90 |
JSON | 8 | 0 | 0 | 8 |
XML | 1 | 0 | 0 | 5 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 11.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 70 | |
Interfaces | 4 | |
Traits | 41 | |
Classes | 341 | |
▷ Abstract classes | 52 | 15.25% |
▷ Concrete classes | 289 | 84.75% |
▷ Final classes | 12 | 4.15% |
Methods | 2,448 | |
▷ Static methods | 238 | 9.72% |
▷ Public methods | 1,697 | 69.32% |
▷ Protected methods | 702 | 28.68% |
▷ Private methods | 49 | 2.00% |
Functions | 309 | |
▷ Named functions | 299 | 96.76% |
▷ Anonymous functions | 10 | 3.24% |
Constants | 27 | |
▷ Global constants | 17 | 62.96% |
▷ Class constants | 10 | 37.04% |
▷ Public constants | 10 | 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
52 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/wponion/wponion/assets/img/layouts/100/header/slideout-left-header.png | 0.63KB | 0.52KB | ▼ 17.70% |
vendor/wponion/wponion/assets/img/layouts/100/sidebar/dual-sidebar-right.png | 0.37KB | 0.17KB | ▼ 53.72% |
vendor/wponion/wponion/assets/img/layouts/75/header/slideout-left-header.png | 0.65KB | 0.60KB | ▼ 8.08% |
vendor/wponion/wponion/assets/img/layouts/125/header/logo-left-header.png | 1.30KB | 1.07KB | ▼ 17.31% |
vendor/wponion/wponion/assets/img/layouts/125/sidebar/right-sidebar.png | 0.40KB | 0.16KB | ▼ 60.19% |