83% track-package

Code Review | Track Package отследживание посылок Новая Почта, Интайм, Автолюкс, Деливери и УкрПочта

WordPress plugin Track Package отследживание посылок Новая Почта, Интайм, Автолюкс, Деливери и УкрПочта scored83%from 54 tests.

About plugin

  • Plugin page: track-package
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 10, 2017
  • Latest release: Jul 10, 2017
  • Number of updates: 7
  • Update frequency: every 4.6 days
  • Top authors: iytin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /789 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 gracefully, with no errors

Server metrics [RAM: ▼0.30MB] [CPU: ▼10.08ms] Passed 4 tests

A check of server-side resources used by Track Package отследживание посылок Новая Почта, Интайм, Автолюкс, Деливери и УкрПочта
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.75 ▼33.76
Dashboard /wp-admin3.36 ▲0.0648.51 ▼3.21
Posts /wp-admin/edit.php3.48 ▲0.1245.38 ▲2.84
Add New Post /wp-admin/post-new.php5.96 ▲0.0885.66 ▼3.84
Media Library /wp-admin/upload.php3.29 ▲0.0634.71 ▲0.49

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
track_package_version
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Track Package отследживание посылок Новая Почта, Интайм, Автолюкс, Деливери и УкрПочта
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.22 ▲0.222.01 ▲0.5536.59 ▼1.80
Dashboard /wp-admin2,212 ▲355.61 ▲0.0383.72 ▼7.8236.45 ▼2.81
Posts /wp-admin/edit.php2,123 ▲232.20 ▲0.1735.86 ▼5.5131.78 ▼6.64
Add New Post /wp-admin/post-new.php1,543 ▲1522.78 ▼0.12581.51 ▼49.2761.20 ▼6.04
Media Library /wp-admin/upload.php1,417 ▲174.28 ▲0.05102.46 ▼4.4843.29 ▼2.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • track_package_version
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/track-package/includes/shortcode/class-track-package-shortcode-public.php
    • > /wp-content/plugins/track-package/includes/admin/views/main.php
    • > /wp-content/plugins/track-package/includes/class-track-package.php
    • > /wp-content/plugins/track-package/includes/admin/class-track-package-admin.php
    • > /wp-content/plugins/track-package/track-package.php
    • > /wp-content/plugins/track-package/includes/admin/class-track-package-admin-pages.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: The plugin tags were not defined
The official readme.txt is a good inspiration

track-package/track-package.php 85% from 13 tests

The main file in "Track Package отследживание посылок Новая Почта, Интайм, Автолюкс, Деливери и УкрПочта" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 260 characters long)
  • Plugin Name: Please shorten the plugin name (currently 147 characters long instead of max. 70)

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
There were no executable files found in this plugin1,602 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS21444895
JavaScript2182396
PHP9140435311

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods937.50%
▷ Public methods1770.83%
▷ Protected methods00.00%
▷ Private methods729.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

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 images were found in this plugin