79% products-boxes-slider-for-woocommerce

Code Review | Products Boxes & Slider for Woocommerce

WordPress plugin Products Boxes & Slider for Woocommerce scored79%from 54 tests.

About plugin

  • Plugin page: products-boxes-sl...
  • Plugin version: 1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Sep 28, 2019
  • Latest release: Jun 15, 2022
  • Number of updates: 10
  • Update frequency: every 99.1 days
  • Top authors: muzammilmotiwala20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.24ms] Passed 4 tests

Analyzing server-side resources used by Products Boxes & Slider for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.62 ▼40.28
Dashboard /wp-admin2.09 ▼1.225.43 ▼47.07
Posts /wp-admin/edit.php2.09 ▼1.275.47 ▼47.23
Add New Post /wp-admin/post-new.php2.09 ▼3.805.69 ▼90.38
Media Library /wp-admin/upload.php2.09 ▼1.145.11 ▼26.09

Server storage [IO: ▲0.46MB] [DB: ▲0.31MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Products Boxes & Slider for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,926 ▲2,16514.65 ▲0.309.34 ▲7.4931.34 ▼12.93
Dashboard /wp-admin3,914 ▲1,7375.66 ▲0.08148.77 ▲56.7349.39 ▲3.16
Posts /wp-admin/edit.php3,449 ▲1,3492.85 ▲0.8767.01 ▲27.9238.61 ▼2.03
Add New Post /wp-admin/post-new.php2,857 ▲1,33123.58 ▲0.47763.73 ▲135.4941.41 ▼8.38
Media Library /wp-admin/upload.php2,319 ▲9224.62 ▲0.40135.07 ▲36.8045.21 ▲3.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the uikit-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: shortcodes, woocommerce, products, slider, ecommerce...

products-boxes-slider-for-woocommerce/woo-produts-boxes-slider.php 85% from 13 tests

"Products Boxes & Slider for Woocommerce" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("products-boxes-slider-for-woocommerce.php" instead of "woo-produts-boxes-slider.php")
  • 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
No dangerous file extensions were detected392 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP63911346
CSS27544
JavaScript2222

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin