84% service-tracker

Code Review | Service Tracker

WordPress plugin Service Tracker scored84%from 54 tests.

About plugin

  • Plugin page: service-tracker
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Aug 23, 2021
  • Latest release: Aug 24, 2021
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: bucklit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /433 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.55MB] [CPU: ▼11.10ms] Passed 4 tests

This is a short check of server-side resources used by Service Tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1342.52 ▲4.80
Dashboard /wp-admin3.43 ▲0.1264.18 ▲16.18
Posts /wp-admin/edit.php3.54 ▲0.1948.87 ▲5.09
Add New Post /wp-admin/post-new.php3.31 ▼2.5737.09 ▼56.91
Media Library /wp-admin/upload.php3.35 ▲0.1235.82 ▲2.63
Add New /wp-admin/post-new.php?post_type=services3.3135.81
All Services /wp-admin/edit.php?post_type=services3.3937.81

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
custom_roles_version
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Service Tracker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.73 ▲0.381.69 ▼0.1646.37 ▲7.76
Dashboard /wp-admin2,236 ▲565.65 ▼0.0397.00 ▲8.4640.96 ▼0.62
Posts /wp-admin/edit.php2,138 ▲592.06 ▲0.0436.11 ▼0.0633.47 ▼1.96
Add New Post /wp-admin/post-new.php1,558 ▲3023.30 ▲0.20656.58 ▼25.0265.02 ▲2.85
Media Library /wp-admin/upload.php1,438 ▲354.30 ▲0.08105.25 ▲7.3344.81 ▼0.69
Add New /wp-admin/post-new.php?post_type=services2,08917.10823.2841.60
All Services /wp-admin/edit.php?post_type=services1,1622.0034.6330.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • custom_roles_version
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+396
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > User notice in wp-includes/functions.php+5905
    Function register_rest_route was called incorrectly. The REST API route definition for service/v2/update is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > User notice in wp-includes/functions.php+5905
    Function register_rest_route was called incorrectly. The REST API route definition for service/v2/list is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+452
    Undefined variable: user
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > User notice in wp-includes/functions.php+5905
    Function register_rest_route was called incorrectly. The REST API route definition for nonce/v2/verify is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > User notice in wp-includes/functions.php+5905
    Function register_rest_route was called incorrectly. The REST API route definition for userd/v2/list is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+492
    Trying to get property 'user_login' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+493
    Trying to get property 'user_email' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+494
    Trying to get property 'user_firstname' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+495
    Trying to get property 'user_lastname' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+496
    Trying to get property 'display_name' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+497
    Trying to get property 'ID' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+148
    Undefined variable: assigned
    • > GET request to /wp-admin/post-new.php?post_type=services
    • > Notice in wp-content/plugins/service-tracker/service-tracker.php+149
    Undefined variable: intransit

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: jobs, status, work, manage services, service...

service-tracker/service-tracker.php 92% from 13 tests

The primary PHP file in "Service Tracker" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected793 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16964410
CSS14344383

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions21
▷ Named functions1571.43%
▷ Anonymous functions628.57%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin