90% shopshape

Code Review | ShopShape

WordPress plugin ShopShape scored90%from 54 tests.

About plugin

  • Plugin page: shopshape
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Jul 27, 2023
  • Number of updates: 12
  • Update frequency: every 13.4 days
  • Top authors: devkabir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /225 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.52 ▼2.13
Dashboard /wp-admin3.43 ▲0.1260.09 ▲7.44
Posts /wp-admin/edit.php3.54 ▲0.1850.95 ▼0.13
Add New Post /wp-admin/post-new.php6.01 ▲0.1296.46 ▼3.28
Media Library /wp-admin/upload.php3.35 ▲0.1235.80 ▲1.79
Cart Customizations /wp-admin/admin.php?page=shopshape3.3334.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.382.08 ▲0.1745.35 ▲0.10
Dashboard /wp-admin2,195 ▲185.60 ▲0.0495.19 ▼0.0544.20 ▼0.83
Posts /wp-admin/edit.php2,079 ▼211.97 ▼0.0439.12 ▲2.1033.19 ▼4.02
Add New Post /wp-admin/post-new.php1,531 ▼1423.13 ▼0.15597.19 ▼88.4159.19 ▲0.30
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.0199.70 ▼7.7943.11 ▼1.66
Cart Customizations /wp-admin/admin.php?page=shopshape9112.0226.7228.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:
LanguageFilesBlank linesComment linesLines of code
PHP173163381,084
JSON1005

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 code0.49
Average class complexity16.88
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes342.86%
Methods60
▷ Static methods2338.33%
▷ Public methods5083.33%
▷ Protected methods23.33%
▷ Private methods813.33%
Functions13
▷ Named functions17.69%
▷ Anonymous functions1292.31%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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