84% woo-stickers-by-webline

Code Review | WOO Stickers by Webline

WordPress plugin WOO Stickers by Webline scored84%from 54 tests.

About plugin

  • Plugin page: woo-stickers-by-w...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2014
  • Latest release: Jan 31, 2023
  • Number of updates: 39
  • Update frequency: every 76.6 days
  • Top authors: WeblineIndia (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

5,000+ active /75,569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.73ms] Passed 4 tests

Analyzing server-side resources used by WOO Stickers by Webline
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.53 ▼4.56
Dashboard /wp-admin3.31 ▲0.0146.34 ▼3.45
Posts /wp-admin/edit.php3.36 ▲0.0046.46 ▲1.03
Add New Post /wp-admin/post-new.php5.89 ▲0.01112.40 ▲18.18
Media Library /wp-admin/upload.php3.23 ▲0.0036.48 ▲0.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WOO Stickers by Webline: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.42 ▼0.231.73 ▲0.0043.50 ▼1.12
Dashboard /wp-admin2,206 ▲154.85 ▼1.03112.38 ▼6.1841.85 ▼4.95
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0132.36 ▼2.7235.89 ▼0.42
Add New Post /wp-admin/post-new.php1,514 ▼1917.50 ▼5.77690.30 ▲40.8651.32 ▼4.66
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.0092.96 ▼4.5440.44 ▼3.42

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-stickers-by-webline/public/partials/woo-stickers-by-webline-public-display.php
    • > /wp-content/plugins/woo-stickers-by-webline/admin/partials/woo-stickers-by-webline-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: woocommerce products stickers, product stickers, product badge, woocommerce product badge, woocommerce stickers...

woo-stickers-by-webline/woo-stickers-by-webline.php 92% from 13 tests

The principal PHP file in "WOO Stickers by Webline" v. 1.1.6 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 226 characters long)

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
Good job! No executable or dangerous file extensions detected3,236 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP124781,0973,049
CSS2149114
JavaScript2186073

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity72.14
▷ Minimum class complexity1.00
▷ Maximum class complexity269.00
Average method complexity5.98
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods100
▷ Static methods22.00%
▷ Public methods9494.00%
▷ Protected methods00.00%
▷ Private methods66.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/wli_label_sprite.png9.02KB4.95KB▼ 45.05%
admin/images/logo.png0.24KB0.25KB0.00%