89% you-save-x-for-woocommerce

Code Review | You Save for Woocommerce

WordPress plugin You Save for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: you-save-x-for-wo...
  • Plugin version: 0.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2022
  • Latest release: Oct 7, 2023
  • Number of updates: 26
  • Update frequency: every 15.7 days
  • Top authors: tentenbiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,451 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
Installer ran successfully

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

Analyzing server-side resources used by You Save for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.34 ▼6.80
Dashboard /wp-admin3.32 ▲0.0247.06 ▼9.13
Posts /wp-admin/edit.php3.37 ▲0.0247.79 ▼4.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.29 ▲3.47
Media Library /wp-admin/upload.php3.24 ▲0.0237.09 ▲1.25

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for You Save for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16514.01 ▼0.756.47 ▲4.0840.03 ▼4.48
Dashboard /wp-admin2,203 ▲124.86 ▼1.05108.69 ▲7.1343.80 ▲0.34
Posts /wp-admin/edit.php2,089 ▼02.18 ▲0.1340.45 ▲0.2739.92 ▲3.66
Add New Post /wp-admin/post-new.php1,514 ▼018.09 ▲0.55679.50 ▼24.3560.93 ▲8.91
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0999.21 ▼20.7344.83 ▼2.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
9 plugin tags: saving, you save, save, badge, flash banner...

you-save-x-for-woocommerce/index.php 85% from 13 tests

The primary PHP file in "You Save for Woocommerce" version 0.5.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("you-save-x-for-woocommerce.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,431 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript67103322,571
PHP224113751
CSS4256109

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.78MB with 1.22MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/scrnpro2.png1,129.81KB368.69KB▼ 67.37%
images/scrnpro1.png694.30KB210.37KB▼ 69.70%