Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.52ms] Passed 4 tests
Server-side resources used by WooCommerce Prism
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.43 ▼1.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 58.61 ▲8.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.95 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.45 ▼15.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.73 ▼3.76 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Prism
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.69 ▼1.00 | 4.25 ▲2.44 | 36.51 ▼7.04 |
Dashboard /wp-admin | 2,206 ▲15 | 4.94 ▲0.07 | 109.53 ▲1.56 | 43.29 ▼1.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.00 | 38.99 ▲1.63 | 34.86 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.45 ▲0.15 | 603.55 ▼104.52 | 47.38 ▼13.72 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.05 | 97.64 ▼9.39 | 44.03 ▲1.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/woo-prism/wc-api/prism-shipping-charges.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/woo-prism/wc-api/prism-ping.php:3
- > PHP Fatal error
Uncaught Error: Class 'PrismappIoWebhook' not found in wp-content/plugins/woo-prism/includes/class-prism-ping-webhook.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/woo-prism/wc-api/prism-search.php:3
- > PHP Fatal error
Uncaught Error: Class 'PrismappIoWebhook' not found in wp-content/plugins/woo-prism/includes/class-prism-get-product-webhook.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/woo-prism/wc-api/prism-ucp-items.php:3
- > PHP Fatal error
Uncaught Error: Class 'PrismappIoWebhook' not found in wp-content/plugins/woo-prism/includes/class-prism-search-area-webhook.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/woo-prism/wc-api/prism-ucp-buyers.php:3
- > PHP Fatal error
Uncaught Error: Class 'PrismappIoWebhook' not found in wp-content/plugins/woo-prism/includes/class-prism-search-webhook.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/woo-prism/wc-api/prism-area.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 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: chat to buy, prismapp, chat commerce, prism
woo-prism/woocommerce-prismappio.php 85% from 13 tests
Analyzing the main PHP file in "WooCommerce Prism" version 0.2.8.10
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-prism.php" instead of "woocommerce-prismappio.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,575 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 490 | 338 | 2,469 |
Markdown | 2 | 25 | 0 | 76 |
Bourne Shell | 3 | 10 | 13 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 22 | 18.64% |
▷ Public methods | 94 | 79.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 20.34% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 17 | 100.00% |
▷ 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
PNG images were not found in this plugin