89% skroutz-analytics-woocommerce

Code Review | Skroutz Analytics for WooCommerce

WordPress plugin Skroutz Analytics for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: skroutz-analytics...
  • Plugin version: 1.7.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: Nov 8, 2023
  • Number of updates: 46
  • Update frequency: every 59.3 days
  • Top authors: skroutz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /36,230 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Skroutz Analytics for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.23 ▲0.90
Dashboard /wp-admin3.33 ▲0.0244.21 ▼8.03
Posts /wp-admin/edit.php3.38 ▲0.0248.41 ▲0.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.75 ▼2.83
Media Library /wp-admin/upload.php3.25 ▲0.0239.27 ▲5.67

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

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

Browser metrics Passed 4 tests

Skroutz Analytics for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.37 ▲0.051.65 ▲0.0138.14 ▼5.48
Dashboard /wp-admin2,201 ▲205.66 ▼0.0291.93 ▼10.3644.31 ▲1.56
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.1139.33 ▼0.9437.26 ▲3.01
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▲0.02611.28 ▲14.2746.45 ▼5.80
Media Library /wp-admin/upload.php1,403 ▲34.16 ▲0.0498.44 ▼6.2542.50 ▼3.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: woocommerce, skroutz, analytics

skroutz-analytics-woocommerce/wc-skroutz-analytics.php 77% from 13 tests

"Skroutz Analytics for WooCommerce" version 1.7.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.5.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("skroutz-analytics-woocommerce.php" instead of "wc-skroutz-analytics.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,019 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON1002,033
PHP13235701815
PO File13234132
JavaScript1101039

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.90
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods67
▷ Static methods22.99%
▷ Public methods2841.79%
▷ Protected methods34.48%
▷ Private methods3653.73%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants29
▷ Global constants13.45%
▷ Class constants2896.55%
▷ Public constants28100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin