Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.58MB] [CPU: ▲11.82ms] Passed 4 tests
Analyzing server-side resources used by MyStyle Custom Product Designer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.48 | 47.82 ▲6.05 |
Dashboard /wp-admin | 4.95 ▲1.60 | 586.80 ▲525.86 |
Posts /wp-admin/edit.php | 4.99 ▲1.63 | 62.54 ▲9.40 |
Add New Post /wp-admin/post-new.php | 7.59 ▲1.70 | 104.87 ▲14.73 |
Media Library /wp-admin/upload.php | 4.85 ▲1.62 | 56.60 ▲17.08 |
Design Collections /wp-admin/edit-tags.php?taxonomy=design_collection | 4.85 | 47.09 |
Dashboard /wp-admin/admin.php?page=mystyle | 4.74 | 48.25 |
Design Tags /wp-admin/edit-tags.php?taxonomy=design_tag | 4.85 | 49.58 |
Add-ons /wp-admin/admin.php?page=mystyle_addons | 4.77 | 47.70 |
Settings /wp-admin/admin.php?page=mystyle_settings | 4.77 | 46.94 |
Server storage [IO: ▲1.48MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 183 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_mystyle_designs |
wp_mystyle_sessions |
New WordPress options |
---|
mystyle_notices |
mystyle_license_status_ |
widget_theysaidso_widget |
widget_recent-posts |
mystyle_options |
mystyle_last_license_update |
db_upgraded |
theysaidso_admin_options |
mystyle_last_update_datetime |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for MyStyle Custom Product Designer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,586 ▼176 | 14.36 ▲0.01 | 1.41 ▼0.20 | 12.89 ▼30.85 |
Dashboard /wp-admin | 2,285 ▲108 | 5.89 ▲0.24 | 94.48 ▼2.70 | 89.52 ▲46.66 |
Posts /wp-admin/edit.php | 2,334 ▲234 | 2.42 ▲0.43 | 41.41 ▼1.03 | 39.90 ▲3.04 |
Add New Post /wp-admin/post-new.php | 1,782 ▲247 | 22.50 ▼2.58 | 758.77 ▲166.10 | 45.49 ▼19.20 |
Media Library /wp-admin/upload.php | 1,501 ▲104 | 4.59 ▲0.36 | 109.21 ▲9.17 | 88.21 ▲46.00 |
Design Collections /wp-admin/edit-tags.php?taxonomy=design_collection | 1,342 | 2.13 | 35.58 | 36.16 |
Dashboard /wp-admin/admin.php?page=mystyle | 939 | 1.12 | 6.72 | 19.97 |
Design Tags /wp-admin/edit-tags.php?taxonomy=design_tag | 1,342 | 2.14 | 33.74 | 34.43 |
Add-ons /wp-admin/admin.php?page=mystyle_addons | 1,155 | 2.02 | 30.06 | 52.49 |
Settings /wp-admin/admin.php?page=mystyle_settings | 1,430 | 2.02 | 31.69 | 35.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_mystyle_designs
- wp_mystyle_sessions
- Zombie WordPress options were found after uninstall: 11 options
- mystyle_options
- can_compress_scripts
- mystyle_license_status_
- mystyle_last_license_update
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
- theysaidso_admin_options
- mystyle_last_update_datetime
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=mystyle
- > Error in wp-content/plugins/mystyle-custom-product-designer/includes/admin/pages/class-mystyle-dashboard-page.php+246
Uncaught Error: Call to undefined function wc_get_products() in wp-content/plugins/mystyle-custom-product-designer/includes/admin/pages/class-mystyle-dashboard-page.php:246
Stack trace:
#0 wp-content/plugins/mystyle-custom-product-designer/includes/admin/pages/class-mystyle-dashboard-page.php(91): MyStyle_Dashboard_Page->get_total_customizable_products_count()
#1 wp-includes/class-wp-hook.php(310): MyStyle_Dashboard_Page->render_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant MYSTYLE_INCLUDES - assumed 'MYSTYLE_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/mystyle-custom-product-designer/tests/includes/admin/notices/test-mystyle-notice-controller.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/mystyle-custom-product-designer/tests/test-mystyle.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/mystyle-custom-product-designer/includes/wprestapi/class-mystyle-wp-rest-api-design-controller.php:13
- > PHP Warning
require_once(MYSTYLE_INCLUDESadmin/notices/class-mystyle-notice-controller.php): failed to open stream: No such file or directory in wp-content/plugins/mystyle-custom-product-designer/tests/includes/admin/notices/test-mystyle-notice-controller.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'MYSTYLE_INCLUDESadmin/notices/class-mystyle-notice-controller.php' (include_path='.:/usr/share/php') in wp-content/plugins/mystyle-custom-product-designer/tests/includes/admin/notices/test-mystyle-notice-controller.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'MyStyle_Exception' not found in wp-content/plugins/mystyle-custom-product-designer/includes/exceptions/class-mystyle-unauthorized-exception.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Ajax_UnitTestCase' not found in wp-content/plugins/mystyle-custom-product-designer/tests/includes/test-mystyle-ajax.php:15
- > PHP Fatal error
Uncaught Error: Class 'MyStyle_EntityManager' not found in wp-content/plugins/mystyle-custom-product-designer/includes/entities/class-mystyle-designmanager.php:13
- > PHP Fatal error
Uncaught Error: Class 'MyStyle_AbstractWC' not found in wp-content/plugins/mystyle-custom-product-designer/tests/mocks/mock-mystyle-wc.php:12
- > PHP Warning
require_once(MYSTYLE_PATHtests/mocks/mock-mystyle-wc.php): failed to open stream: No such file or directory in wp-content/plugins/mystyle-custom-product-designer/tests/includes/shortcodes/test-mystyle-customizer-shortcode.php on line 13
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
mystyle-custom-product-designer/mystyle.php 85% from 13 tests
"MyStyle Custom Product Designer" version 3.19.31'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 ("mystyle-custom-product-designer.php" instead of "mystyle.php")
- Requires at least: Required version does not match the one declared in readme.txt ("3.3" instead of "2.2.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected23,679 lines of code in 169 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 4,576 | 9,988 | 14,299 |
JSON | 3 | 0 | 0 | 7,761 |
CSS | 7 | 172 | 45 | 814 |
JavaScript | 12 | 165 | 157 | 467 |
Markdown | 8 | 64 | 0 | 136 |
Bourne Shell | 1 | 21 | 7 | 99 |
XML | 2 | 5 | 4 | 91 |
YAML | 1 | 4 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 116 | |
▷ Abstract classes | 13 | 11.21% |
▷ Concrete classes | 103 | 88.79% |
▷ Final classes | 1 | 0.97% |
Methods | 1,017 | |
▷ Static methods | 188 | 18.49% |
▷ Public methods | 981 | 96.46% |
▷ Protected methods | 5 | 0.49% |
▷ Private methods | 31 | 3.05% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 43 | |
▷ Global constants | 26 | 60.47% |
▷ Class constants | 17 | 39.53% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mystyle-icon.png | 1.44KB | 0.53KB | ▼ 63.11% |
assets/images/mystyle-logo-v2-32x32.png | 2.84KB | 1.56KB | ▼ 45.24% |
assets/images/mystyle-logo-v2-100x100.png | 10.82KB | 4.26KB | ▼ 60.58% |