90% product-carousels-for-total

Code Review | Product Carousels for Total

WordPress plugin Product Carousels for Total scored90%from 54 tests.

About plugin

  • Plugin page: product-carousels...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2021
  • Latest release: Mar 14, 2023
  • Number of updates: 3
  • Update frequency: every 230.7 days
  • Top authors: WPExplorer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.94ms] Passed 4 tests

Analyzing server-side resources used by Product Carousels for Total
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.55 ▼2.41
Dashboard /wp-admin3.32 ▲0.0245.32 ▼13.27
Posts /wp-admin/edit.php3.38 ▲0.0242.90 ▼2.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.59 ▲6.45
Media Library /wp-admin/upload.php3.25 ▲0.0235.93 ▲2.40

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

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

Browser metrics Passed 4 tests

Product Carousels for Total: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.09 ▼0.561.90 ▼0.0845.16 ▼2.06
Dashboard /wp-admin2,192 ▲125.56 ▼0.0487.81 ▼1.0737.85 ▼6.41
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.0435.08 ▼0.8934.64 ▼0.64
Add New Post /wp-admin/post-new.php1,529 ▼023.21 ▲0.41601.68 ▼71.5547.13 ▼7.78
Media Library /wp-admin/upload.php1,403 ▲94.24 ▲0.04101.62 ▲1.4243.75 ▼3.62

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: slider, woocommerce, total theme, carousel

product-carousels-for-total/product-carousels-for-total.php Passed 13 tests

The entry point to "Product Carousels for Total" version 1.1 is a PHP file that has certain tags in its header comment area
98 characters long description:
Transforms the WooCommerce related and upsell columns into carousels in the Total WordPress theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected178 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22748116
JavaScript213061
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods114.29%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin