58% walee-tracking

Code Review | Walee Tracking

WordPress plugin Walee Tracking scored58%from 54 tests.

About plugin

  • Plugin page: walee-tracking
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 11, 2020
  • Latest release: Mar 19, 2021
  • Number of updates: 6
  • Update frequency: every 31.8 days
  • Top authors: naqqashriasat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /398 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.55ms] Passed 4 tests

An overview of server-side resources used by Walee Tracking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.74 ▼5.95
Dashboard /wp-admin3.31 ▼0.0443.54 ▼13.85
Posts /wp-admin/edit.php3.36 ▲0.0041.66 ▼5.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.86 ▼20.46
Media Library /wp-admin/upload.php3.23 ▲0.0037.85 ▲4.68

Server storage [IO: ▲0.06MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: 7 new tables, 6 new options
New tables
wp_wt_sales
wp_wt_sale_line
wp_wt_carts
wp_wt_match_data
wp_wt_config
wp_wt_formsubmittion
wp_wt_views
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Walee Tracking: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.061.74 ▼0.0841.40 ▼2.87
Dashboard /wp-admin2,209 ▲215.91 ▲0.0898.88 ▼9.2338.58 ▼8.04
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0135.74 ▼0.0834.60 ▼3.66
Add New Post /wp-admin/post-new.php1,514 ▼2617.60 ▼0.60662.14 ▲10.4457.66 ▲5.94
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0397.44 ▼3.3341.49 ▼4.81

Uninstaller [IO: ▲0.06MB] [DB: ▲0.01MB] 25% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Incomplete uninstall procedure, leaving 9 files (0.06MB) in the plugin directory
    • (new file) languages/.empty
    • (new file) license.txt
    • (new file) vendor/functions.php
    • (new file) templates/admin.php
    • (new file) readme.txt
    • (new file) vendor/dbFunctions.php
    • (new file) templates/admin.html
    • (new file) vendor/makeTables.php
    • (new file) walee-tracking.php
  • Zombie tables were found after uninstall: 7 tables
    • wp_wt_match_data
    • wp_wt_sale_line
    • wp_wt_views
    • wp_wt_sales
    • wp_wt_carts
    • wp_wt_config
    • wp_wt_formsubmittion
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/walee-tracking/templates/admin.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_charset_collate() on null in wp-content/plugins/walee-tracking/vendor/makeTables.php:36

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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 to be fixed:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to banner-772�250. This represents the banner to be used in plugin page.), #2 (This screen shot description corresponds to icon-256x256. This represents the icon to be used for plugin.)
You can take inspiration from this readme.txt

walee-tracking/walee-tracking.php 92% from 13 tests

The main PHP script in "Walee Tracking" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Success! There were no dangerous files found in this plugin594 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP582139575
HTML10019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin