78% sina-extension-for-elementor

Code Review | Sina Extension for Elementor (Slider, Gallery, Form, Modal, Data Table, Tab, Particle, Free Elementor Widgets & Elementor Templates)

WordPress plugin Sina Extension for Elementor (Slider, Gallery, Form, Modal, Data Table, Tab, Particle, Free Elementor Widgets & Elementor Templates) scored78%from 54 tests.

About plugin

  • Plugin page: sina-extension-fo...
  • Plugin version: 3.5.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Nov 25, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 271
  • Update frequency: every 6.7 days
  • Top authors: shaonsina (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

40,000+ active /436,969 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Sina Extension for Elementor (Slider, Gallery, Form, Modal, Data Table, Tab, Particle, Free Elementor Widgets & Elementor Templates)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.78 ▼2.65
Dashboard /wp-admin3.33 ▼0.0148.34 ▼15.80
Posts /wp-admin/edit.php3.38 ▲0.0245.25 ▼4.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.89 ▲6.60
Media Library /wp-admin/upload.php3.25 ▲0.0231.88 ▼3.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 196 new files
Database: no new tables, 11 new options
New WordPress options
sina_templates_option
sina_map_apikey
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
sina_widgets
widget_recent-comments
sina_mailchimp
db_upgraded
theysaidso_admin_options
...

Browser metrics Passed 4 tests

A check of browser resources used by Sina Extension for Elementor (Slider, Gallery, Form, Modal, Data Table, Tab, Particle, Free Elementor Widgets & Elementor Templates)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5014.26 ▼0.071.69 ▼0.0343.51 ▼0.79
Dashboard /wp-admin2,217 ▲395.64 ▲0.0193.26 ▼22.7844.17 ▲0.45
Posts /wp-admin/edit.php2,122 ▲222.11 ▲0.0839.16 ▼0.4036.67 ▲3.51
Add New Post /wp-admin/post-new.php1,543 ▲1723.24 ▼0.11663.45 ▲6.9156.82 ▲0.80
Media Library /wp-admin/upload.php1,422 ▲194.18 ▼0.1197.58 ▼0.8242.76 ▼0.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • sina_mailchimp
    • sina_templates_option
    • sina_map_apikey
    • sina_widgets
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/top.php
    • > /wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/middle.php
    • > /wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/bottom.php
  • 53× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/top.php on line 14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/top.php on line 14
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/bottom.php on line 12
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/middle.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/middle.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/bottom.php on line 12
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/top.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/middle.php on line 1
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/bottom.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sina-extension-for-elementor/widgets/layout/review-carousel/top.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

sina-extension-for-elementor/sina-extension-for-elementor.php 92% from 13 tests

The main PHP file in "Sina Extension for Elementor (Slider, Gallery, Form, Modal, Data Table, Tab, Particle, Free Elementor Widgets & Elementor Templates)" ver. 3.5.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected48,929 lines of code in 101 files:
LanguageFilesBlank linesComment linesLines of code
PHP652,3723,28835,775
PO File76,31412,62312,877
JavaScript1824126263
CSS1112614

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.32
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
Methods471
▷ Static methods469.77%
▷ Public methods34573.25%
▷ Protected methods12225.90%
▷ Private methods40.85%
Functions15
▷ Named functions1173.33%
▷ Anonymous functions426.67%
Constants15
▷ Global constants1386.67%
▷ Class constants213.33%
▷ Public constants2100.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
12 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/brand1.png1.23KB1.26KB0.00%
assets/img/brand2.png1.15KB1.18KB0.00%
assets/css/img/sort_asc.png14.29KB0.18KB▼ 98.76%
assets/css/img/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/css/img/sort_desc.png14.72KB0.17KB▼ 98.82%