84% featured-products-vertical-scroller

Code Review | Featured Products Vertical Scroller

WordPress plugin Featured Products Vertical Scroller scored84%from 54 tests.

About plugin

  • Plugin page: featured-products...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2017
  • Latest release: Dec 7, 2017
  • Number of updates: 9
  • Update frequency: every 4.6 days
  • Top authors: tv360 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /834 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.32ms] Passed 4 tests

An overview of server-side resources used by Featured Products Vertical Scroller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.50 ▲3.24
Dashboard /wp-admin3.35 ▲0.0444.35 ▼5.82
Posts /wp-admin/edit.php3.40 ▲0.0447.95 ▼11.27
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.68 ▼19.52
Media Library /wp-admin/upload.php3.27 ▲0.0434.84 ▼0.66

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_wcfps
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Featured Products Vertical Scroller
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.131.85 ▲0.0542.46 ▲0.63
Dashboard /wp-admin2,209 ▲245.86 ▲0.96106.46 ▲3.7743.60 ▲2.01
Posts /wp-admin/edit.php2,068 ▼212.02 ▼0.0339.11 ▲1.2535.74 ▲1.14
Add New Post /wp-admin/post-new.php1,514 ▼1917.70 ▼5.50676.40 ▲13.3652.09 ▲2.11
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0297.13 ▼10.6443.47 ▼1.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_wcfps
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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)
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/featured-products-vertical-scroller/wc-featured-products-scroller.php:89

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce, scroller, carousel, featured products

featured-products-vertical-scroller/wc-featured-products-scroller.php 85% from 13 tests

The main PHP file in "Featured Products Vertical Scroller" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("featured-products-vertical-scroller.php" instead of "wc-featured-products-scroller.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,980 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2847452,113
CSS2445274
Sass2275262
PHP13230158
LESS1115152
SVG11013
Ruby1208

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin