89% cart66-lite-advance-sales-report-lite

Code Review | Cart66 Lite Advance Sales Report Lite

WordPress plugin Cart66 Lite Advance Sales Report Lite scored 89% from 54 tests.

About plugin

  • Plugin page: cart66-lite-advan...
  • 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 18, 2014
  • Latest release: Mar 18, 2014
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: infosoftplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,445 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Cart66 Lite Advance Sales Report Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.68 ▲0.44
Dashboard /wp-admin3.31 ▲0.0054.76 ▲6.84
Posts /wp-admin/edit.php3.36 ▲0.0046.62 ▼0.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.26 ▼17.15
Media Library /wp-admin/upload.php3.23 ▲0.0032.07 ▼4.52

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

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

Browser metrics Passed 4 tests

Cart66 Lite Advance Sales Report Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.33 ▼1.251.64 ▼0.6743.00 ▼0.51
Dashboard /wp-admin2,203 ▲125.81 ▼0.0993.89 ▼7.5536.99 ▼2.55
Posts /wp-admin/edit.php2,089 ▲32.04 ▼0.0134.36 ▼0.1432.09 ▼3.74
Add New Post /wp-admin/post-new.php1,535 ▲223.04 ▼0.30668.77 ▼19.7362.32 ▲8.47
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0996.95 ▼4.4044.81 ▼1.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Cart66 Advance Sales Report Lite Pro for Cart66 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: There are too many tags (18 tag instead of maximum 10)
The official readme.txt is a good inspiration

cart66-lite-advance-sales-report-lite/ic-cart66-advance-sales-report.php 85% from 13 tests

This is the main PHP file of "Cart66 Lite 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
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 201 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cart66-lite-advance-sales-report-lite.php" instead of "ic-cart66-advance-sales-report.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin886 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP37143611
JavaScript81524139
CSS2471136

PHP code Passed 2 tests

Analyzing 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 complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/buy-now.png7.15KB3.87KB▼ 45.80%
screenshot-5.png27.59KB8.21KB▼ 70.25%
screenshot-3.png40.46KB12.67KB▼ 68.68%
screenshot-4.png19.86KB5.60KB▼ 71.81%
screenshot-1.png103.45KB26.00KB▼ 74.87%