Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.22ms] Passed 4 tests
Server-side resources used by WooCommerce Product Badges | Myshopkit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.77 ▲2.72 |
Dashboard /wp-admin | 3.51 ▲0.17 | 46.98 ▼9.62 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 43.29 ▼5.40 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 81.15 ▼12.58 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.15 ▲3.81 |
New Arrival /wp-admin/edit.php?post_type=mskmbwp_new_arrival | 3.42 | 35.52 |
Manuals /wp-admin/edit.php?post_type=mskmbwp_manual | 3.42 | 35.63 |
On Sale /wp-admin/edit.php?post_type=mskmbwp_on_sale | 3.42 | 33.84 |
Add New /wp-admin/post-new.php?post_type=mskmbwp_manual | 3.55 | 49.12 |
Add New /wp-admin/post-new.php?post_type=mskmbwp_out_of_stock | 3.55 | 56.10 |
Add New /wp-admin/post-new.php?post_type=mskmbwp_on_sale | 3.55 | 50.83 |
Add New /wp-admin/post-new.php?post_type=mskmbwp_new_arrival | 3.55 | 47.48 |
Out Of Stock /wp-admin/edit.php?post_type=mskmbwp_out_of_stock | 3.42 | 38.80 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 425 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
mskmbwp_auth |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Product Badges | Myshopkit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,037 ▲291 | 13.90 ▼0.83 | 13.62 ▲11.93 | 31.57 ▼9.23 |
Dashboard /wp-admin | 2,327 ▲150 | 5.59 ▼0.07 | 96.91 ▲5.84 | 76.39 ▲36.49 |
Posts /wp-admin/edit.php | 2,251 ▲154 | 2.01 ▲0.07 | 39.17 ▲3.40 | 38.42 ▲4.57 |
Add New Post /wp-admin/post-new.php | 1,650 ▲124 | 20.94 ▼2.21 | 698.95 ▼10.96 | 52.52 ▼1.95 |
Media Library /wp-admin/upload.php | 1,547 ▲147 | 3.99 ▼0.18 | 111.09 ▲6.39 | 77.43 ▲34.84 |
New Arrival /wp-admin/edit.php?post_type=mskmbwp_new_arrival | 1,232 | 1.94 | 33.47 | 32.31 |
Manuals /wp-admin/edit.php?post_type=mskmbwp_manual | 1,232 | 1.96 | 35.31 | 32.02 |
On Sale /wp-admin/edit.php?post_type=mskmbwp_on_sale | 1,226 | 1.94 | 33.37 | 35.83 |
Add New /wp-admin/post-new.php?post_type=mskmbwp_manual | 2,346 | 7.69 | 167.41 | 119.73 |
Add New /wp-admin/post-new.php?post_type=mskmbwp_out_of_stock | 2,349 | 7.58 | 159.15 | 113.67 |
Add New /wp-admin/post-new.php?post_type=mskmbwp_on_sale | 2,346 | 7.53 | 161.49 | 105.63 |
Add New /wp-admin/post-new.php?post_type=mskmbwp_new_arrival | 2,346 | 7.57 | 159.31 | 120.82 |
Out Of Stock /wp-admin/edit.php?post_type=mskmbwp_out_of_stock | 1,232 | 1.94 | 34.13 | 32.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/hello.php
- > /wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/index.php
- > /wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/wiloke.php
- 204× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AUpload' not found in wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/components/Upload/ImageURLUpload.php:7
- > PHP Fatal error
Uncaught Error: Class 'MyShopKitMBWP\\DefaultBadge\\Services\\Post\\PostService' not found in wp-content/plugins/myshopkit-product-badges-wp/src/DefaultBadge/Services/Post/CreatePostService.php:14
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Tests/Fixtures/Foo2Command.php:7
- > PHP Fatal error
Uncaught Error: Class 'MyShopKitMBWP\\Product\\Controllers\\ProductController' not found in wp-content/plugins/myshopkit-product-badges-wp/src/Product/Product.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Input/ArgvInput.php on line 287
- > PHP Fatal error
Uncaught Error: Class 'MyShopKitMBWP\\DefaultBadge\\Services\\Post\\PostService' not found in wp-content/plugins/myshopkit-product-badges-wp/src/Automatic/Services/Post/CreatePostService.php:13
- > PHP Fatal error
Uncaught Error: Class 'MyShopKitMBWP\\Automatic\\Services\\PostMeta\\PostMetaService' not found in wp-content/plugins/myshopkit-product-badges-wp/src/Automatic/Services/PostMeta/AddPostMetaService.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Tests/Output/StreamOutputTest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'MyShopKitMBWP\\Automatic\\Shared\\IAutomaticState' not found in wp-content/plugins/myshopkit-product-badges-wp/src/Automatic/Shared/NewArrivalBadge.php:11
- > PHP Fatal error
Uncaught Error: Class 'WilokeCommandLine\\CommonController' not found in wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/src/SetupUpload.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in myshopkit-product-badges-wp/assets to your readme.txt
myshopkit-product-badges-wp/myshopkit-product-badges-wp.php Passed 13 tests
The entry point to "WooCommerce Product Badges | Myshopkit" version 1.0.4 is a PHP file that has certain tags in its header comment area
80 characters long description:
Highlighting your product with 500+ pre-made badges and Boost Sales custom code.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/myshopkit-product-badges-wp/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Resources/bin/hiddeninput.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 287 | 4,916 | 9,835 | 21,481 |
Markdown | 24 | 415 | 0 | 1,225 |
JSON | 25 | 0 | 0 | 697 |
JavaScript | 2 | 23 | 6 | 521 |
XML | 18 | 25 | 0 | 447 |
CSS | 4 | 3 | 0 | 331 |
YAML | 2 | 30 | 2 | 126 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 57 | |
Interfaces | 19 | |
Traits | 20 | |
Classes | 213 | |
▷ Abstract classes | 10 | 4.69% |
▷ Concrete classes | 203 | 95.31% |
▷ Final classes | 3 | 1.48% |
Methods | 1,872 | |
▷ Static methods | 376 | 20.09% |
▷ Public methods | 1,543 | 82.43% |
▷ Protected methods | 190 | 10.15% |
▷ Private methods | 139 | 7.43% |
Functions | 117 | |
▷ Named functions | 49 | 41.88% |
▷ Anonymous functions | 68 | 58.12% |
Constants | 47 | |
▷ Global constants | 8 | 17.02% |
▷ Class constants | 39 | 82.98% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin