89% wp-e-commerce-advance-sales-report-lite

Code Review | WP E-Commerce Advance Sales Report Lite

WordPress plugin WP E-Commerce Advance Sales Report Lite scored89%from 54 tests.

About plugin

  • Plugin page: wp-e-commerce-adv...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2014
  • Latest release: Mar 5, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: infosoftplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.84ms] Passed 4 tests

Server-side resources used by WP E-Commerce Advance Sales Report Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0345.55 ▲5.37
Dashboard /wp-admin3.34 ▲0.0349.67 ▼1.91
Posts /wp-admin/edit.php3.39 ▲0.0345.81 ▼8.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.16 ▼14.31
Media Library /wp-admin/upload.php3.26 ▲0.0334.47 ▼2.87

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP E-Commerce Advance Sales Report Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.63 ▲0.251.84 ▲0.3243.88 ▲3.62
Dashboard /wp-admin2,198 ▲215.65 ▼0.0394.12 ▲3.1043.85 ▲7.04
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0236.01 ▼1.7034.11 ▲0.33
Add New Post /wp-admin/post-new.php1,526 ▼923.35 ▲5.30683.36 ▼20.9851.09 ▼23.65
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.0499.75 ▼9.7744.31 ▲0.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (WP E-Commerce Advance Sales Report Lite Pro for WP E-Commerce Dashboard (some features only in paid versions)), #2 (Daily, weekly, monthly and yearly sales count and amount), #3 (Recent order list (Order ID, Order Date, Billing email, First Name, order Item Count and amount)), #4 (Top 5 Billing country (total order count and amount)), #5 (Top 5 customer (Customer billing first name, billing email address, order count and total customer order amount))
  • Tags: You are using too many tags: 18 tag instead of maximum 10
The official readme.txt might help

wp-e-commerce-advance-sales-report-lite/ic-wpecommerce-advance-sales-report.php 85% from 13 tests

This is the main PHP file of "WP E-Commerce Advance Sales Report Lite" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-e-commerce-advance-sales-report-lite.php" instead of "ic-wpecommerce-advance-sales-report.php")
  • Description: The description should be shorter than 140 characters (currently 208 characters long)

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
Good job! No executable or dangerous file extensions detected867 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP38530594
JavaScript61520137
CSS2471136

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity21.00
▷ Minimum class complexity19.00
▷ Maximum class complexity23.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png87.63KB23.32KB▼ 73.39%
screenshot-2.png17.72KB5.48KB▼ 69.06%
assets/images/buy-now.png7.15KB3.87KB▼ 45.80%
assets/images/menu_icons.png1.23KB0.27KB▼ 78.46%
screenshot-5.png17.58KB6.16KB▼ 64.94%