94% seesiu-for-woocommerce

Code Review | Seesiu for WooCommerce

WordPress plugin Seesiu for WooCommerce scored 94% from 54 tests.

About plugin

  • Plugin page: seesiu-for-woocom...
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 5.9.2
  • First release: Oct 14, 2020
  • Latest release: Mar 11, 2021
  • Number of updates: 12
  • Update frequency: every 13.0 days
  • Top authors: seesiu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 250 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.11ms] Passed 4 tests

A check of server-side resources used by Seesiu for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0160.94 ▲11.64
Dashboard /wp-admin3.41 ▲0.0132.17 ▼0.18
Posts /wp-admin/edit.php3.64 ▲0.0035.71 ▼4.89
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.71 ▼1,172.58
Media Library /wp-admin/upload.php3.30 ▲0.0022.99 ▼2.78

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Seesiu for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,774 ▲5215.64 ▼0.035.83 ▲0.032.17 ▼0.25
Dashboard /wp-admin2,906 ▲516.18 ▼0.14117.14 ▼42.84157.48 ▼12.40
Posts /wp-admin/edit.php2,700 ▲63.24 ▲0.0065.39 ▼0.53140.29 ▼7.25
Add New Post /wp-admin/post-new.php1,668 ▼2216.08 ▼5.57412.63 ▼49.48155.05 ▼0.02
Media Library /wp-admin/upload.php1,706 ▲85.51 ▼0.00143.28 ▼2.08182.45 ▼6.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seesiu-for-woocommerce/includes/admin-menu/seesiu-settings.php:15
    • > PHP Warning
      Use of undefined constant SEFW_BMC_LIB_PATH - assumed 'SEFW_BMC_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seesiu-for-woocommerce/lib/index.php on line 17
    • > PHP Warning
      opendir(SEFW_BMC_LIB_PATH/): failed to open dir: No such file or directory in wp-content/plugins/seesiu-for-woocommerce/lib/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/seesiu-for-woocommerce/seesiu.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: environment, greener, seesiu, shop, woo

seesiu-for-woocommerce/seesiu.php 92% from 13 tests

Analyzing the main PHP file in "Seesiu for WooCommerce" version 0.0.4
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seesiu-for-woocommerce.php" instead of "seesiu.php")

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
No dangerous file extensions were detected3,131 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG2002,486
PHP612680444
JavaScript1131180
CSS10021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.33
▷ Minimum class complexity4.00
▷ Maximum class complexity37.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods13.57%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
No PNG files were detected