84% slider-x-woo

Code Review | Slider X Woo

WordPress plugin Slider X Woo scored84%from 54 tests.

About plugin

  • Plugin page: slider-x-woo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 23, 2022
  • Latest release: Oct 23, 2022
  • Number of updates: 2
  • Update frequency: every 43.5 days
  • Top authors: pluginbazar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Slider X Woo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.36 ▼12.80
Dashboard /wp-admin3.33 ▼0.0247.41 ▼24.43
Posts /wp-admin/edit.php3.38 ▲0.0254.60 ▲6.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.90 ▼12.14
Media Library /wp-admin/upload.php3.25 ▲0.0234.75 ▼1.23

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 238 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Slider X Woo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.081.89 ▼0.5739.73 ▼5.84
Dashboard /wp-admin2,198 ▲245.59 ▼0.0090.79 ▼3.0539.63 ▼0.68
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0341.35 ▲5.7435.23 ▼4.14
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.20635.81 ▼47.2554.46 ▼5.83
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0695.83 ▼10.4644.38 ▼0.25

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-x-woo/includes/classes/class-hooks.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'PBSettings_Abstract' not found in wp-content/plugins/slider-x-woo/includes/sdk/settings/classes/admin-options.class.php:11
    • > PHP Fatal error
      Uncaught Error: Call to a member function slider_classes() on null in wp-content/plugins/slider-x-woo/slider-x-woo/templates/slider-product/theme-5/slider.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function slider_classes() on null in wp-content/plugins/slider-x-woo/slider-x-woo/templates/slider-product/theme-6/slider.php:12
    • > PHP Fatal error
      Uncaught Error: Call to a member function slider_classes() on null in wp-content/plugins/slider-x-woo/templates/slider-product/theme-5/slider.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PBSettings_Abstract' not found in wp-content/plugins/slider-x-woo/slider-x-woo/includes/sdk/settings/classes/fields.class.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PBSettings_Abstract' not found in wp-content/plugins/slider-x-woo/includes/sdk/settings/classes/fields.class.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PBSettings_Abstract' not found in wp-content/plugins/slider-x-woo/slider-x-woo/includes/sdk/settings/classes/admin-options.class.php:11
    • > PHP Fatal error
      Uncaught Error: Call to a member function slider_classes() on null in wp-content/plugins/slider-x-woo/templates/slider-product/theme-6/slider.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-x-woo/slider-x-woo/includes/classes/class-hooks.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
The official readme.txt is a good inspiration

slider-x-woo/slider-x-woo.php Passed 13 tests

The primary PHP file in "Slider X Woo" version 1.0.0 is used by WordPress to initiate all plugin functionality
46 characters long description:
Multipurpose slider for your WooCommerce store

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 detected21,436 lines of code in 116 files:
LanguageFilesBlank linesComment linesLines of code
PHP872,9491,5548,839
JavaScript81,3195096,679
CSS181,0895725,870
Markdown130046
SVG2002

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.61
Average class complexity23.83
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity6.13
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes138
▷ Abstract classes42.90%
▷ Concrete classes13497.10%
▷ Final classes00.00%
Methods614
▷ Static methods8614.01%
▷ Public methods60097.72%
▷ Protected methods00.00%
▷ Private methods142.28%
Functions72
▷ Named functions72100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
slider-x-woo/includes/sdk/settings/assets/images/checkerboard.png2.29KB2.54KB0.00%
includes/sdk/settings/assets/images/checkerboard.png2.29KB2.54KB0.00%