78% wc-subscription-report-lite

Code Review | WC Subscription Report Lite

WordPress plugin WC Subscription Report Lite scored78%from 54 tests.

About plugin

  • Plugin page: wc-subscription-r...
  • Plugin version: 1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.x-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2017
  • Latest release: Feb 21, 2023
  • Number of updates: 30
  • Update frequency: every 73.0 days
  • Top authors: infosoftplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,175 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▲4.76ms] Passed 4 tests

A check of server-side resources used by WC Subscription Report Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.61 ▲1.08
Dashboard /wp-admin3.70 ▲0.4056.92 ▲6.08
Posts /wp-admin/edit.php3.76 ▲0.4052.28 ▲2.61
Add New Post /wp-admin/post-new.php6.22 ▲0.34101.15 ▲15.26
Media Library /wp-admin/upload.php3.57 ▲0.3443.37 ▲9.28

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
icwoocommercesubscriptionslite
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Subscription Report Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.13 ▼1.261.69 ▼0.0443.10 ▼5.27
Dashboard /wp-admin2,211 ▲295.79 ▲0.92105.60 ▼8.2639.78 ▼4.08
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0633.41 ▼5.8236.06 ▲2.40
Add New Post /wp-admin/post-new.php1,550 ▲3318.29 ▲0.71609.58 ▼73.5854.49 ▼19.55
Media Library /wp-admin/upload.php1,396 ▲144.27 ▲0.0697.07 ▼3.3544.79 ▲2.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'IC_Woocommerce_Subscriptions_Report_Lite' does not have a method 'deactivation'
  • This plugin does not fully uninstall, leaving 7 options in the database
    • icwoocommercesubscriptionslite
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (WC Subscription Report Lite - Dashboard), #2 (WC Subscription Report Lite - Details)
You can look at the official readme.txt

wc-subscription-report-lite/ic-woocommerce-subscriptions-lite.php 62% from 13 tests

The entry point to "WC Subscription Report Lite" version 1.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-subscription-report-lite.php" instead of "ic-woocommerce-subscriptions-lite.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "3.5.x")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,591 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP78501833,296
CSS33111061,161
JavaScript53592121,134

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity85.86
▷ Minimum class complexity2.00
▷ Maximum class complexity264.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods132
▷ Static methods00.00%
▷ Public methods132100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
34 PNG files occupy 0.89MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu_icons.png1.23KB0.27KB▼ 78.46%
assets/images/icons/product-icon.png0.61KB0.76KB0.00%
assets/images/icons/back-icon.png0.33KB0.39KB0.00%
assets/images/icons/total-sales-icon.png0.35KB0.38KB0.00%
assets/images/step-blue.png5.13KB2.37KB▼ 53.86%