10% service-tracker-stolmc

Code Review | Service Tracker STO

WordPress plugin Service Tracker STO scored10%from 54 tests.

About plugin

  • Plugin page: service-tracker-s...
  • Plugin version: 1.0.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2023
  • Latest release: Oct 7, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: rdelbem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /34 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > User error in wp-content/plugins/service-tracker-stolmc/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.

Server metrics [RAM: ▼1.96MB] [CPU: ▼56.62ms] Passed 4 tests

An overview of server-side resources used by Service Tracker STO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.34 ▼36.79
Dashboard /wp-admin2.05 ▼1.266.15 ▼46.38
Posts /wp-admin/edit.php2.05 ▼1.315.61 ▼44.64
Add New Post /wp-admin/post-new.php2.05 ▼3.846.76 ▼98.66
Media Library /wp-admin/upload.php2.05 ▼1.184.82 ▼34.30

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 144 new files
Database: 2 new tables, no new options
New tables
wp_servicetracker_cases
wp_servicetracker_progress

Browser metrics Passed 4 tests

Service Tracker STO: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.36 ▲0.091.91 ▲0.3544.65 ▲4.53
Dashboard /wp-admin2,206 ▲325.55 ▲0.0190.11 ▲0.6668.29 ▲24.18
Posts /wp-admin/edit.php2,109 ▲91.97 ▲0.0234.61 ▼1.0234.07 ▼2.26
Add New Post /wp-admin/post-new.php1,536 ▲1022.56 ▼0.61662.24 ▲39.3962.66 ▲14.18
Media Library /wp-admin/upload.php1,412 ▲94.15 ▼0.0495.07 ▲0.0841.60 ▼1.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User error in wp-content/plugins/service-tracker-stolmc/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_servicetracker_cases
    • wp_servicetracker_progress
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/bin/gh-actions-builder.php
  • 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/bootstrap.php on line 3
    • > PHP Warning
      require_once(wp-content/plugins/service-tracker-stolmc/vendor/rdelbem/wp-mailer-class/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/service-tracker-stolmc/vendor/rdelbem/wp-mailer-class/tests/bootstrap.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/unit/Moment/MomentTest.php:7
    • > PHP Warning
      require(wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/test.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/unit/Moment/MomentUkrainianLocaleTest.php:7
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/format.php on line 3
    • > PHP Fatal error
      Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16. in wp-content/plugins/service-tracker-stolmc/vendor/composer/platform_check.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/unit/Moment/MomentEsperantoLocaleTest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/unit/Moment/MomentPolishLocaleTest.php:7
    • > PHP Warning
      require(wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/service-tracker-stolmc/vendor/fightbulc/moment/tests/format.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
3 plugin tags: woocommerce, tracking, service

service-tracker-stolmc/Service_Tracker_init.php 77% from 13 tests

This is the main PHP file of "Service Tracker STO" version 1.0.1, 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:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("service-tracker-stolmc.php" instead of "Service_Tracker_init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8,246 lines of code in 127 files:
LanguageFilesBlank linesComment linesLines of code
PHP961,3772,0076,380
Markdown32150676
CSS2704427
JSON400201
PO File16363199
YAML2550171
HTML1580163
JavaScript170616
XML11013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.07
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces2
Traits0
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes00.00%
Methods335
▷ Static methods3610.75%
▷ Public methods30290.15%
▷ Protected methods72.09%
▷ Private methods267.76%
Functions121
▷ Named functions21.65%
▷ Anonymous functions11998.35%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants342.86%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected