83% products-slider-wpbakery

Code Review | Products Slider for WPBakery

WordPress plugin Products Slider for WPBakery scored83%from 54 tests.

About plugin

  • Plugin page: products-slider-w...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7
  • WordPress version: 6.3.1
  • First release: Jun 25, 2021
  • Latest release: Jun 25, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: elementinvader (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /520 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.25ms] Passed 4 tests

Server-side resources used by Products Slider for WPBakery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0834.45 ▼5.58
Dashboard /wp-admin3.37 ▲0.0743.82 ▼3.85
Posts /wp-admin/edit.php3.42 ▲0.0745.62 ▼0.43
Add New Post /wp-admin/post-new.php5.95 ▲0.0790.35 ▼7.12
Media Library /wp-admin/upload.php3.29 ▲0.0736.83 ▲1.70

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Products Slider for WPBakery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲17213.63 ▼0.739.00 ▲7.4342.71 ▲0.57
Dashboard /wp-admin2,208 ▲175.83 ▲0.80107.29 ▲1.5739.48 ▼2.43
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0539.98 ▼0.4335.58 ▲0.70
Add New Post /wp-admin/post-new.php1,533 ▼023.13 ▼0.02661.08 ▲17.7353.25 ▲5.87
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.01100.95 ▼0.5244.72 ▼1.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/products-slider-wpbakery/products-slider-wpbakery.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-slider-wpbakery/widgets/widget-slider.php:11

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

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Products Slider for WPBakery in Widget Panel), #2 (Products Slider for WPBakery on Frontend)
  • Donate link: Invalid URI ("elementinvader.com")
Please take inspiration from this readme.txt

products-slider-wpbakery/products-slider-wpbakery.php 92% from 13 tests

The main PHP script in "Products Slider for WPBakery" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin12,361 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
SVG41128,783
CSS61,41923,066
PHP25063385
Sass114070
JavaScript215557

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity12.00
▷ Minimum method complexity12.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions654.55%
▷ Anonymous functions545.45%
Constants5
▷ Global constants5100.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