Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.01ms] Passed 4 tests
Server-side resources used by WPAppsDev - WooCommerce PcBuilder Toolkit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 43.76 ▲0.89 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.36 ▼0.37 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 48.88 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.31 ▼13.04 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 36.32 ▲2.04 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_wpadpcbu_saved_pc |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
wpadpcbu_pages_created |
wpadpcbu_installed |
widget_theysaidso_widget |
page_settings |
wpadpcbu_version |
Browser metrics Passed 4 tests
A check of browser resources used by WPAppsDev - WooCommerce PcBuilder Toolkit
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲14 | 14.31 ▼0.25 | 1.74 ▼0.26 | 44.45 ▲5.91 |
Dashboard /wp-admin | 2,203 ▲23 | 5.53 ▼0.11 | 82.28 ▼2.34 | 40.93 ▼2.27 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.11 ▲0.13 | 34.82 ▲0.14 | 30.72 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.55 ▲0.43 | 688.88 ▲4.74 | 55.18 ▲3.76 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.17 ▲0.01 | 95.91 ▲1.81 | 46.65 ▲4.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wpadpcbu_saved_pc
- The uninstall procedure has failed, leaving 10 options in the database
- wpadpcbu_installed
- can_compress_scripts
- db_upgraded
- wpadpcbu_version
- widget_recent-comments
- wpadpcbu_pages_created
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- page_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpappsdev-pcbuilder/templates/shortcodes/pc-builder-search.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wpappsdev-pcbuilder/templates/shortcodes/pc-builder-product.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wpappsdev-pcbuilder/templates/shortcodes/pc-builder.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpappsdev-pcbuilder/templates/admin/category-edit-form.php:2
- > PHP Notice
Undefined variable: products in wp-content/plugins/wpappsdev-pcbuilder/templates/shortcodes/pc-builder-product.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpappsdev-pcbuilder/templates/admin/admin-notice.php:2
- > PHP Fatal error
Trait 'WPAppsDev\\PCBU\\Traits\\Singleton' not found in wp-content/plugins/wpappsdev-pcbuilder/includes/Frontend/CustomerDashboard.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WPAppsDev\\PCBU\\Abstracts\\WPAppsDevShortcode' not found in wp-content/plugins/wpappsdev-pcbuilder/includes/Shortcodes/PcBuilders.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpappsdev-pcbuilder/templates/admin/category-add-form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/wpappsdev-pcbuilder/templates/admin/product-metabox.php:26
- > PHP Fatal error
Uncaught Error: Class 'WPAppsDev\\PCBU\\Abstracts\\WPAppsDevShortcode' not found in wp-content/plugins/wpappsdev-pcbuilder/includes/Shortcodes/PcBuildersSearch.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: computer builder, computer component, woocommerce pc builder, pc builder
wpappsdev-pcbuilder/wpappsdev-pcbuilder.php Passed 13 tests
This is the main PHP file of "WPAppsDev - WooCommerce PcBuilder Toolkit" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Complete PC Components Selling Solution Toolkit for WooCommerce.
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
Good job! No executable or dangerous file extensions detected5,349 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 976 | 1,939 | 4,427 |
CSS | 8 | 39 | 64 | 699 |
JavaScript | 8 | 69 | 67 | 219 |
JSON | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 29 | |
▷ Abstract classes | 2 | 6.90% |
▷ Concrete classes | 27 | 93.10% |
▷ Final classes | 1 | 3.70% |
Methods | 218 | |
▷ Static methods | 38 | 17.43% |
▷ Public methods | 215 | 98.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.38% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/WPAppsDev/assets/images/image.png | 2.74KB | 0.10KB | ▼ 96.43% |
vendor/WPAppsDev/assets/images/chosen-sprite.png | 0.55KB | 0.70KB | 0.00% |
vendor/WPAppsDev/assets/images/sprite.png | 6.06KB | 2.18KB | ▼ 64.10% |