89% wc-slider

Code Review | WooCom Product Slider

WordPress plugin WooCom Product Slider scored89%from 54 tests.

About plugin

  • Plugin page: wc-slider
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Feb 5, 2018
  • Latest release: Jun 26, 2022
  • Number of updates: 13
  • Update frequency: every 123.3 days
  • Top authors: jahur (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,127 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WooCom Product Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.40 ▼0.70
Dashboard /wp-admin3.33 ▼0.0248.75 ▼15.38
Posts /wp-admin/edit.php3.38 ▲0.0250.90 ▼0.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.80 ▼7.09
Media Library /wp-admin/upload.php3.25 ▲0.0235.76 ▼1.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCom Product Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲12913.97 ▼0.019.31 ▲7.4342.16 ▼1.61
Dashboard /wp-admin2,195 ▲155.65 ▲0.0291.86 ▲2.0641.50 ▼2.05
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0839.05 ▲1.1336.22 ▼0.21
Add New Post /wp-admin/post-new.php1,545 ▲1223.23 ▲0.07648.15 ▼44.1756.46 ▲1.57
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0697.40 ▼11.3342.34 ▼6.20

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.jpg) image required
You can look at the official readme.txt

wc-slider/wc-slider.php 92% from 13 tests

The principal PHP file in "WooCom Product Slider" v. 1.1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected14,972 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS101,6277412,857
JavaScript34679121,926
PHP34511118
Markdown137069
SVG2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/owlcarousel/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%
screenshot-1.png89.85KB25.95KB▼ 71.12%