83% touch-fashion-slider-elementor-addon

Code Review | Touch Fashion Slider for Elementor

WordPress plugin Touch Fashion Slider for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: touch-fashion-sli...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 25, 2021
  • Latest release: Nov 9, 2022
  • Number of updates: 14
  • Update frequency: every 22.9 days
  • Top authors: teknofraction (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /9,574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Touch Fashion Slider for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0246.82 ▲6.79
Dashboard /wp-admin3.32 ▲0.0248.34 ▲0.94
Posts /wp-admin/edit.php3.37 ▲0.0152.17 ▲0.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.59 ▼18.84
Media Library /wp-admin/upload.php3.24 ▲0.0138.39 ▲3.58

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Touch Fashion Slider for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.76 ▲0.536.29 ▲1.4238.72 ▼1.94
Dashboard /wp-admin2,224 ▲235.88 ▼0.20105.88 ▲0.1543.70 ▼1.94
Posts /wp-admin/edit.php2,103 ▼02.05 ▲0.0340.37 ▼0.8438.37 ▼0.61
Add New Post /wp-admin/post-new.php1,529 ▼2517.41 ▼1.05684.63 ▲66.6357.92 ▼0.15
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.1297.94 ▼0.3344.06 ▼2.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/touch-fashion-slider-elementor-addon/include/hero-slider/hero-1.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/touch-fashion-slider-elementor-addon/widgets/elementor-helper.php:19
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/touch-fashion-slider-elementor-addon/include/hero-slider/hero-2.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/touch-fashion-slider-elementor-addon/include/hero-slider/hero-2.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/touch-fashion-slider-elementor-addon/include/hero-slider/hero-1.php on line 1

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 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

touch-fashion-slider-elementor-addon/tfsel-touch-fashion-slider.php 69% from 13 tests

Analyzing the main PHP file in "Touch Fashion Slider for Elementor" version 1.0.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("touch-fashion-slider-elementor-addon.php" instead of "tfsel-touch-fashion-slider.php")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "7.0")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "5.0")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin22,897 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
SVG3039,549
JavaScript61,5172558,251
CSS71,560624,148
PHP7133213949

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1071.43%
▷ Protected methods428.57%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin