84% kelkoogroup-sales-tracking

Code Review | Kelkoogroup Salestracking

WordPress plugin Kelkoogroup Salestracking scored84%from 54 tests.

About plugin

  • Plugin page: kelkoogroup-sales...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2020
  • Latest release: Sep 25, 2023
  • Number of updates: 49
  • Update frequency: every 26.7 days
  • Top authors: kelkoogroup (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /3,817 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Kelkoogroup Salestracking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.84 ▼2.32
Dashboard /wp-admin3.35 ▲0.0048.94 ▼14.95
Posts /wp-admin/edit.php3.40 ▲0.0452.73 ▲3.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.18 ▼12.25
Media Library /wp-admin/upload.php3.27 ▲0.0443.49 ▲7.99
Kelkoogroup /wp-admin/options-general.php?page=kelkoogroup-settings3.2132.78

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Kelkoogroup Salestracking
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲5914.26 ▼0.103.91 ▲1.7543.32 ▼1.96
Dashboard /wp-admin2,199 ▲225.63 ▼0.0698.01 ▼3.7237.96 ▼8.70
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0339.29 ▲2.8435.88 ▼0.69
Add New Post /wp-admin/post-new.php1,548 ▲2223.20 ▲5.58673.74 ▼26.8962.70 ▼1.00
Media Library /wp-admin/upload.php1,401 ▲14.22 ▼0.02101.34 ▼5.3443.71 ▼7.96
Kelkoogroup /wp-admin/options-general.php?page=kelkoogroup-settings8572.0122.8346.15

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=kelkoogroup-settings
    • > Notice in wp-content/plugins/kelkoogroup-sales-tracking/admin/class-kelkoogroup-salestracking-admin.php+92
    Trying to access array offset on value of type bool

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: php, sales, woocommerce, kelkoogroup, tracking

kelkoogroup-sales-tracking/woocommerce-kelkoogroup-salestracking.php 85% from 13 tests

"Kelkoogroup Salestracking" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("kelkoogroup-sales-tracking.php" instead of "woocommerce-kelkoogroup-salestracking.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.0" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33459167
Markdown127084

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin