90% woocommerce-connect-for-tally-framework

Code Review | Woocommerce Connect For Tally Framework

WordPress plugin Woocommerce Connect For Tally Framework scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-conne...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Jul 12, 2014
  • Latest release: Oct 20, 2014
  • Number of updates: 14
  • Update frequency: every 7.1 days
  • Top authors: tallythemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,329 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼10.84ms] Passed 4 tests

Server-side resources used by Woocommerce Connect For Tally Framework
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0938.23 ▼2.22
Dashboard /wp-admin3.44 ▲0.0548.51 ▼16.87
Posts /wp-admin/edit.php3.55 ▲0.1550.91 ▼0.13
Add New Post /wp-admin/post-new.php6.02 ▲0.0985.36 ▼24.12
Media Library /wp-admin/upload.php3.36 ▲0.0937.75 ▲0.07

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Woocommerce Connect For Tally Framework
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.65 ▲0.301.87 ▲0.3440.45 ▼1.83
Dashboard /wp-admin2,189 ▲125.50 ▼0.1381.93 ▼8.4941.65 ▼0.46
Posts /wp-admin/edit.php2,103 ▼01.95 ▼0.0437.15 ▼1.8537.02 ▼0.32
Add New Post /wp-admin/post-new.php1,526 ▼223.22 ▲0.16657.07 ▲5.3853.07 ▼3.43
Media Library /wp-admin/upload.php1,400 ▲64.19 ▼0.09110.18 ▲7.5147.66 ▲1.11

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
5 plugin tags: ecommerce, woocommerce, tallythemes, woocommerce connect, tally framework

woocommerce-connect-for-tally-framework/woocommerce-connect-for-tally-framework.php 92% from 13 tests

"Woocommerce Connect For Tally Framework" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected560 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP2133117386
SVG200112
PO File1161652
CSS34010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshorts/banner-772x250.png23.90KB10.18KB▼ 57.41%
assets/images/chosen-sprite.png0.58KB0.88KB0.00%
assets/images/help.png0.30KB0.32KB0.00%
assets/images/icons/credit-cards/visa.png1.16KB1.31KB0.00%
assets/images/icons/credit-cards/amex.png2.05KB1.70KB▼ 16.90%