10% woo-custom-related-products-slider-lite-by-au

Code Review | Woo Custom Related Products Slider [Lite] by AU

WordPress plugin Woo Custom Related Products Slider [Lite] by AU scored10%from 54 tests.

About plugin

  • Plugin page: woo-custom-relate...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2016
  • Latest release: Jun 29, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: ilnarkan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /807 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/woo-custom-related-products-slider-lite-by-au/woo-custom-related-products-slider-lite.php+31
    require_once(wp-content/plugins/woo-custom-related-products-slider-lite-by-au\inc\activate.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.47ms] Passed 4 tests

Server-side resources used by Woo Custom Related Products Slider [Lite] by AU
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.10 ▲1.52
Dashboard /wp-admin3.31 ▲0.0046.23 ▼1.99
Posts /wp-admin/edit.php3.36 ▲0.0047.35 ▼1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.44 ▲1.60
Media Library /wp-admin/upload.php3.23 ▲0.0033.35 ▲0.49

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Custom Related Products Slider [Lite] by AU
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.38 ▼0.911.77 ▲0.0540.76 ▼1.40
Dashboard /wp-admin2,206 ▲155.85 ▲0.97109.82 ▲4.7243.12 ▲3.46
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0039.97 ▼1.7235.02 ▼0.10
Add New Post /wp-admin/post-new.php1,514 ▼2017.67 ▼5.73605.01 ▲11.4250.03 ▼6.04
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0097.00 ▲0.4441.08 ▼1.15

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-custom-related-products-slider-lite-by-au/inc/activate.php
    • > /wp-content/plugins/woo-custom-related-products-slider-lite-by-au/woo-custom-related-products-slider-lite.php
    • > /wp-content/plugins/woo-custom-related-products-slider-lite-by-au/inc/enqueue.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/woo-custom-related-products-slider-lite-by-au/inc/admin-menu.php on line 549
    • > PHP Parse error
      syntax error, unexpected 'endif' (T_ENDIF) in wp-content/plugins/woo-custom-related-products-slider-lite-by-au/inc/related-products.php on line 341

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: related products slider, woocommerce slider, related products, custom related products, woocommerce

woo-custom-related-products-slider-lite-by-au/woo-custom-related-products-slider-lite.php 77% from 13 tests

Analyzing the main PHP file in "Woo Custom Related Products Slider [Lite] by AU" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-custom-related-products-slider-lite-by-au.php" instead of "woo-custom-related-products-slider-lite.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 238 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,926 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP6346601,093
CSS311146595
PO File15967151
JavaScript322187

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/grabbing.png0.11KB0.14KB0.00%