Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.59MB] [CPU: ▲12.79ms] Passed 4 tests
An overview of server-side resources used by ShopCred
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.93 ▲1.46 | 48.21 ▲4.39 |
Dashboard /wp-admin | 4.98 ▲1.67 | 66.38 ▲16.05 |
Posts /wp-admin/edit.php | 5.02 ▲1.66 | 72.22 ▲20.56 |
Add New Post /wp-admin/post-new.php | 7.57 ▲1.68 | 100.71 ▲10.15 |
Media Library /wp-admin/upload.php | 4.82 ▲1.58 | 56.66 ▲23.34 |
Dashboard /wp-admin/admin.php?page=shopcred-dashboard | 4.87 | 48.46 |
Plugin Settings /wp-admin/admin.php?page=shopcred-dashboard-settings-page | 4.88 | 52.49 |
Server storage [IO: ▲5.74MB] [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: 227 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
shopcred_dynamic_css_time |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Dynamic_CSS_posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ShopCred
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,177 ▲416 | 16.31 ▲1.57 | 6.50 ▲4.14 | 42.19 ▼3.79 |
Dashboard /wp-admin | 2,462 ▲282 | 7.65 ▲1.99 | 167.15 ▲72.33 | 91.04 ▲49.33 |
Posts /wp-admin/edit.php | 2,405 ▲302 | 4.56 ▲2.60 | 65.57 ▲23.00 | 79.36 ▲36.07 |
Add New Post /wp-admin/post-new.php | 1,772 ▲246 | 23.98 ▲0.39 | 668.02 ▲0.85 | 36.76 ▼14.22 |
Media Library /wp-admin/upload.php | 1,502 ▲99 | 5.69 ▲1.51 | 106.65 ▲3.54 | 86.82 ▲41.46 |
Dashboard /wp-admin/admin.php?page=shopcred-dashboard | 1,653 | 5.74 | 85.98 | 95.86 |
Plugin Settings /wp-admin/admin.php?page=shopcred-dashboard-settings-page | 1,600 | 5.74 | 83.40 | 76.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- shopcred_dynamic_css_time
- Dynamic_CSS_posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 19× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/shopcred/admin/vue-ui/components/notice.php
- > /wp-content/plugins/shopcred/admin/vue-ui/components/select.php
- > /wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/before-component.php
- > /wp-content/plugins/shopcred/admin/vue-ui/components/switcher.php
- > /wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/alert-list.php
- > /wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/after-component.php
- > /wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/header.php
- > /wp-content/plugins/shopcred/admin/vue-ui/components/collapse.php
- > /wp-content/plugins/shopcred/admin/shopcred-dashboard/views/settings/plugin-settings-toggle.php
- > /wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/alert-item.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/before-sidebar.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shopcred/admin/templates/settings-templates/general-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/after-sidebar.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/sidebar.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/dashboard.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shopcred/admin/shopcred-dashboard/views/welcome/main.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/shopcred-admin-category.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/shopcred/admin/shopcred-dashboard/views/settings/main.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/shopcred/admin/templates/blocks.php:16
- > PHP Warning
Use of undefined constant SPC_ADMIN_URL - assumed 'SPC_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/shopcred/admin/shopcred-dashboard/views/common/header.php on line 10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=shopcred-dashboard-settings-page
- > Network (severe)
wp-content/plugins/shopcred/admin/assets/js/setting-pages.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: blocks, exclusive blocks, shop, woocommerce, products...
shopcred/shopcred.php Passed 13 tests
This is the main PHP file of "ShopCred" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
The Best Gutenberg Blocks Collection for WooCommerce from Exclusive Blocks
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected38,428 lines of code in 210 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 2,157 | 1,703 | 14,907 |
PHP | 70 | 2,206 | 3,059 | 12,276 |
CSS | 17 | 1,250 | 112 | 7,055 |
Sass | 40 | 564 | 19 | 3,885 |
SVG | 18 | 1 | 0 | 305 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 2 | 5.71% |
▷ Concrete classes | 33 | 94.29% |
▷ Final classes | 2 | 6.06% |
Methods | 396 | |
▷ Static methods | 69 | 17.42% |
▷ Public methods | 358 | 90.40% |
▷ Protected methods | 6 | 1.52% |
▷ Private methods | 32 | 8.08% |
Functions | 11 | |
▷ Named functions | 6 | 54.55% |
▷ Anonymous functions | 5 | 45.45% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/presets-3.62ef05fb.png | 22.39KB | 9.16KB | ▼ 59.10% |
build/images/presets-4.043dc9fb.png | 21.71KB | 7.95KB | ▼ 63.40% |
admin/assets/img/spc-dbrd-tmpl-r-side-img.png | 60.98KB | 20.15KB | ▼ 66.95% |
build/images/presets-2.35d6f0b3.png | 19.27KB | 8.03KB | ▼ 58.34% |
admin/shopcred-dashboard/assets/images/spc-dbrd-tmpl-r-side-img.png | 60.98KB | 20.15KB | ▼ 66.95% |