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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.34 ▼36.79 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.15 ▼46.38 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.61 ▼44.64 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.76 ▼98.66 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.36 ▲0.09 | 1.91 ▲0.35 | 44.65 ▲4.53 |
Dashboard /wp-admin | 2,206 ▲32 | 5.55 ▲0.01 | 90.11 ▲0.66 | 68.29 ▲24.18 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.97 ▲0.02 | 34.61 ▼1.02 | 34.07 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.56 ▼0.61 | 662.24 ▲39.39 | 62.66 ▲14.18 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.15 ▼0.04 | 95.07 ▲0.08 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 1,377 | 2,007 | 6,380 |
Markdown | 3 | 215 | 0 | 676 |
CSS | 2 | 70 | 4 | 427 |
JSON | 4 | 0 | 0 | 201 |
PO File | 1 | 63 | 63 | 199 |
YAML | 2 | 55 | 0 | 171 |
HTML | 1 | 58 | 0 | 163 |
JavaScript | 17 | 0 | 6 | 16 |
XML | 1 | 1 | 0 | 13 |
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 code | 0.21 |
Average class complexity | 8.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 335 | |
▷ Static methods | 36 | 10.75% |
▷ Public methods | 302 | 90.15% |
▷ Protected methods | 7 | 2.09% |
▷ Private methods | 26 | 7.76% |
Functions | 121 | |
▷ Named functions | 2 | 1.65% |
▷ Anonymous functions | 119 | 98.35% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 3 | 42.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