Benchmarks
Plugin footprint 83% 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.12MB] [CPU: ▼0.94ms] Passed 4 tests
Analyzing server-side resources used by ShopShape
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.52 ▼2.13 |
Dashboard /wp-admin | 3.43 ▲0.12 | 60.09 ▲7.44 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.95 ▼0.13 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 96.46 ▼3.28 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.80 ▲1.79 |
Cart Customizations /wp-admin/admin.php?page=shopshape | 3.33 | 34.91 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for ShopShape
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.21 ▼0.38 | 2.08 ▲0.17 | 45.35 ▲0.10 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▲0.04 | 95.19 ▼0.05 | 44.20 ▼0.83 |
Posts /wp-admin/edit.php | 2,079 ▼21 | 1.97 ▼0.04 | 39.12 ▲2.10 | 33.19 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▼14 | 23.13 ▼0.15 | 597.19 ▼88.41 | 59.19 ▲0.30 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▲0.01 | 99.70 ▼7.79 | 43.11 ▼1.66 |
Cart Customizations /wp-admin/admin.php?page=shopshape | 911 | 2.02 | 26.72 | 28.19 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: cart, woocommerce, customize
shopshape/shopshape.php Passed 13 tests
"ShopShape" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Enhancing Your Shopping Experience By Customizing Woocommerce Pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,089 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 316 | 338 | 1,084 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 3 | 42.86% |
Methods | 60 | |
▷ Static methods | 23 | 38.33% |
▷ Public methods | 50 | 83.33% |
▷ Protected methods | 2 | 3.33% |
▷ Private methods | 8 | 13.33% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin