90% woocommerce-esewa

Code Review | WooCommerce eSewa

WordPress plugin WooCommerce eSewa scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-esewa
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.4
  • WordPress version: 6.3.1
  • First release: May 12, 2015
  • Latest release: May 19, 2020
  • Number of updates: 26
  • Update frequency: every 70.6 days
  • Top authors: axisthemes (65.38%)shivapoudel (38.46%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /7,886 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.81ms] Passed 4 tests

Server-side resources used by WooCommerce eSewa
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.77 ▲0.40
Dashboard /wp-admin3.32 ▼0.0246.79 ▼18.50
Posts /wp-admin/edit.php3.37 ▲0.0248.88 ▲1.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.46 ▼10.52
Media Library /wp-admin/upload.php3.24 ▲0.0237.86 ▲2.73

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

WooCommerce eSewa: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4614.35 ▲0.452.26 ▲0.0638.77 ▼5.71
Dashboard /wp-admin2,206 ▲265.61 ▼0.0694.22 ▲3.2043.56 ▲2.18
Posts /wp-admin/edit.php2,114 ▲142.01 ▲0.0140.91 ▲6.2735.97 ▲1.41
Add New Post /wp-admin/post-new.php1,537 ▲1123.02 ▼0.10655.88 ▼18.2057.43 ▲1.99
Media Library /wp-admin/upload.php1,414 ▲144.19 ▲0.01104.45 ▼5.5344.52 ▲0.63

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
2 plugin tags: esewa, woocommerce

woocommerce-esewa/woocommerce-esewa.php 92% from 13 tests

Analyzing the main PHP file in "WooCommerce eSewa" version 2.0.0
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin464 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7110336440
JavaScript25624

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.40
▷ Minimum class complexity4.00
▷ Maximum class complexity28.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes125.00%
Methods33
▷ Static methods26.06%
▷ Public methods2060.61%
▷ Protected methods1133.33%
▷ Private methods26.06%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/esewa.png1.48KB1.38KB▼ 6.68%