83% os3-responsive-slider-for-elementor

Code Review | OS3 Responsive Slider for Elementor - Pro

WordPress plugin OS3 Responsive Slider for Elementor - Pro scored83%from 54 tests.

About plugin

  • Plugin page: os3-responsive-sl...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 13, 2022
  • Latest release: Jun 13, 2022
  • Number of updates: 3
  • Update frequency: every 81.3 days
  • Top authors: fsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /662 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
Installer ran successfully

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

Server-side resources used by OS3 Responsive Slider for Elementor - Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.82 ▼4.86
Dashboard /wp-admin3.31 ▲0.0143.94 ▼2.44
Posts /wp-admin/edit.php3.36 ▲0.0047.12 ▲0.32
Add New Post /wp-admin/post-new.php5.89 ▲0.00110.48 ▲24.12
Media Library /wp-admin/upload.php3.23 ▲0.0032.24 ▼3.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for OS3 Responsive Slider for Elementor - Pro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.25 ▼1.121.72 ▼0.0941.72 ▼2.85
Dashboard /wp-admin2,224 ▲364.85 ▼1.04108.11 ▼12.6243.15 ▲0.29
Posts /wp-admin/edit.php2,106 ▲172.02 ▼0.0341.78 ▲3.6438.35 ▲3.16
Add New Post /wp-admin/post-new.php1,555 ▲1818.29 ▼4.91595.87 ▼89.6154.64 ▼4.14
Media Library /wp-admin/upload.php1,409 ▲184.24 ▲0.04102.50 ▼3.4543.43 ▼4.10

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/os3-responsive-slider-for-elementor/widgets/responsive-slider.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/os3-responsive-slider-for-elementor/wp-responsive-slider.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
4 plugin tags: slider, carousel, elementor, responsive

os3-responsive-slider-for-elementor/wp-responsive-slider.php 77% from 13 tests

The entry point to "OS3 Responsive Slider for Elementor - Pro" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("os3-responsive-slider-for-elementor.php" instead of "wp-responsive-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,826 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2129181,699
CSS1191103
JavaScript10017
Markdown1707

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity20.00
▷ Minimum class complexity9.00
▷ Maximum class complexity31.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods24
▷ Static methods14.17%
▷ Public methods2395.83%
▷ Protected methods14.17%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
There were not PNG files found in your plugin