Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.91ms] Passed 4 tests
A check of server-side resources used by Custom Post Type Woocommerce Integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.88 ▼0.70 |
Dashboard /wp-admin | 3.44 ▲0.09 | 45.12 ▼14.13 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.41 ▲3.83 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 99.55 ▲9.57 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.06 ▲3.38 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
cptwooint_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
cptwooint_plugin_version |
widget_recent-comments |
cptwooint_plugin_activation_time |
Browser metrics Passed 4 tests
Custom Post Type Woocommerce Integration: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲85 | 14.12 ▼0.13 | 2.12 ▲0.54 | 41.44 ▼0.99 |
Dashboard /wp-admin | 2,212 ▲31 | 5.62 ▼0.10 | 89.50 ▼9.17 | 41.10 ▼2.57 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.37 ▲0.40 | 40.80 ▲2.17 | 36.11 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,550 ▲20 | 23.20 ▲0.24 | 674.91 ▲29.86 | 57.74 ▲5.84 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.26 ▲0.09 | 98.14 ▼0.88 | 43.08 ▲2.72 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- cptwooint_settings
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- cptwooint_plugin_activation_time
- cptwooint_plugin_version
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 13× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/cpt-woo-integration/TinyApp/Controllers/Admin/AdminMenu.php
- > /wp-content/plugins/cpt-woo-integration/cpt-woo-integration.php
- > /wp-content/plugins/cpt-woo-integration/TinyApp/Controllers/AssetsController.php
- > /wp-content/plugins/cpt-woo-integration/TinyApp/Helpers/Fns.php
- > /wp-content/plugins/cpt-woo-integration/TinyApp/Controllers/Notice/BlackFriday.php
- > /wp-content/plugins/cpt-woo-integration/TinyApp/Controllers/AdminController.php
- > /wp-content/plugins/cpt-woo-integration/TinyApp/Abs/Base.php
- > /wp-content/plugins/cpt-woo-integration/TinyApp/Traits/CptProductDataStoreReadTrait.php
- > /wp-content/plugins/cpt-woo-integration/TinyApp/cptwooint.php
- > /wp-content/plugins/cpt-woo-integration/TinyApp/Controllers/Dependencies.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'TinySolutions\\cptwooint\\Traits\\SingletonTrait' not found in wp-content/plugins/cpt-woo-integration/TinyApp/Controllers/Admin/Api.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WC_Product_Data_Store_CPT' not found in wp-content/plugins/cpt-woo-integration/TinyApp/Modal/CPTProductDataStore.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Order_Item_Product' not found in wp-content/plugins/cpt-woo-integration/TinyApp/Modal/CPTOrderItemProduct.php:8
- > PHP Fatal error
Trait 'TinySolutions\\cptwooint\\Traits\\SingletonTrait' not found in wp-content/plugins/cpt-woo-integration/TinyApp/Controllers/Notice/Review.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
cpt-woo-integration/cpt-woo-integration.php 92% from 13 tests
Analyzing the main PHP file in "Custom Post Type Woocommerce Integration" version 1.1.5
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin3,333 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 698 | 1,190 | 3,315 |
JavaScript | 2 | 0 | 50 | 11 |
JSON | 1 | 0 | 0 | 5 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 1 | 4.76% |
Methods | 138 | |
▷ Static methods | 38 | 27.54% |
▷ Public methods | 122 | 88.41% |
▷ Protected methods | 1 | 0.72% |
▷ Private methods | 15 | 10.87% |
Functions | 12 | |
▷ Named functions | 1 | 8.33% |
▷ Anonymous functions | 11 | 91.67% |
Constants | 10 | |
▷ Global constants | 6 | 60.00% |
▷ Class constants | 4 | 40.00% |
▷ Public constants | 4 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cpt-woo-icon-150x150.png | 9.20KB | 4.14KB | ▼ 54.96% |