89% saphali-woocommerce-lite

Code Review | Saphali Woocommerce Lite

WordPress plugin Saphali Woocommerce Lite scored89%from 54 tests.

About plugin

  • Plugin page: saphali-woocommer...
  • Plugin version: 1.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.6.6-6.3
  • WordPress version: 6.3.1
  • First release: Oct 21, 2012
  • Latest release: Oct 12, 2023
  • Number of updates: 234
  • Update frequency: every 17.1 days
  • Top authors: Saphali (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

20,000+ active /507,577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼2.33ms] Passed 4 tests

Server-side resources used by Saphali Woocommerce Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4052.86 ▲8.48
Dashboard /wp-admin3.70 ▲0.4054.21 ▲0.87
Posts /wp-admin/edit.php3.82 ▲0.4659.11 ▲6.69
Add New Post /wp-admin/post-new.php6.28 ▲0.4087.38 ▼19.51
Media Library /wp-admin/upload.php3.63 ▲0.4042.18 ▲2.63

Server storage [IO: ▲2.39MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Saphali Woocommerce Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.081.86 ▲0.2641.33 ▼3.26
Dashboard /wp-admin2,195 ▲215.51 ▼0.1491.91 ▼5.0237.62 ▼0.73
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0739.21 ▼2.2038.82 ▼0.22
Add New Post /wp-admin/post-new.php1,528 ▼023.28 ▲0.20639.94 ▼32.8753.96 ▲2.42
Media Library /wp-admin/upload.php1,397 ▼34.26 ▲0.08103.03 ▼28.8544.19 ▼10.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires at least: Version format is invalid
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Возможность выводить поле в зависимости от метода доставки или оплаты.), #2 (Управление полями на странице заказа и на странице профиля. Функция позволяет настроить заказную форму регистрации, чтобы настроить магазин на упрощение оформления заказа. Вы можете сделать некоторые поля необязательными при регистрации/оформлении заказа либо удалить их полностью.), #3 (Управление полями (перемещение в нужную позицию).), #4 (Как выглядит на странице.), #5 (Управление количеством колонок в каталоге товаров и рубриках.)
Please take inspiration from this readme.txt

saphali-woocommerce-lite/saphali-woocommerce-lite.php 92% from 13 tests

The principal PHP file in "Saphali Woocommerce Lite" v. 1.9.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 208 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin14,924 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File35,3098,30311,953
PHP3135912,744
JavaScript128127227

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.08
Average class complexity715.00
▷ Minimum class complexity715.00
▷ Maximum class complexity715.00
Average method complexity11.79
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.73MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png243.48KB86.04KB▼ 64.66%
screenshot-1.png56.27KB27.45KB▼ 51.22%
screenshot-2.png398.21KB150.87KB▼ 62.11%
screenshot-4.png12.90KB5.51KB▼ 57.24%
screenshot-5.png37.67KB16.59KB▼ 55.95%