68% install-tracker

Code Review | Install Tracker

WordPress plugin Install Tracker scored 68% from 54 tests.

About plugin

  • Plugin page: install-tracker
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 5.9.2
  • First release: Oct 23, 2015
  • Latest release: Oct 23, 2015
  • Number of updates: 5
  • Update frequency: every 230.8 days
  • Top authors: Kyght (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 504 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼307.12ms] Passed 4 tests

Analyzing server-side resources used by Install Tracker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0260.98 ▲6.60
Dashboard /wp-admin3.46 ▲0.0532.02 ▼8.92
Posts /wp-admin/edit.php3.68 ▲0.0536.31 ▼1.64
Add New Post /wp-admin/post-new.php6.92 ▼0.0594.68 ▼1,210.73
Media Library /wp-admin/upload.php3.34 ▲0.0528.02 ▼7.17
Products /wp-admin/admin.php?page=kytracker_admin_prods3.3124.76
Install Tracker /wp-admin/options-general.php?page=kytracker-setting-admin3.3125.70
Delete /wp-admin/admin.php?page=kytracker_admin_reg_del3.2922.07
Upgrades /wp-admin/admin.php?page=kytracker_admin_upg3.3122.66
Install Tracker /wp-admin/admin.php?page=kytracker_admin_page3.3123.91
Edit /wp-admin/admin.php?page=kytracker_admin_reg_view3.2922.13
Delete /wp-admin/admin.php?page=kytracker_admin_upg_del3.2922.37
Edit /wp-admin/admin.php?page=kytracker_admin_upg_edit3.2945.65
Delete /wp-admin/admin.php?page=kytracker_admin_prods_del3.2920.25
Add /wp-admin/admin.php?page=kytracker_admin_upg_add3.3122.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: 3 new tables, 1 new option
New tables
wp_kyght_producttry
wp_kyght_companytry
wp_kyght_upgrade
New WordPress options
jal_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Install Tracker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,842 ▲9815.81 ▲0.215.83 ▼1.302.08 ▼0.02
Dashboard /wp-admin2,938 ▲876.10 ▼0.10121.16 ▼17.71190.86 ▼25.44
Posts /wp-admin/edit.php2,706 ▲183.12 ▼0.1264.53 ▲2.66141.39 ▼1.72
Add New Post /wp-admin/post-new.php1,783 ▲6621.06 ▼1.35464.86 ▲7.92204.47 ▲48.81
Media Library /wp-admin/upload.php1,746 ▲485.55 ▲0.05125.54 ▼15.20266.15 ▲67.07
Products /wp-admin/admin.php?page=kytracker_admin_prods1,0992.3853.71104.94
Install Tracker /wp-admin/options-general.php?page=kytracker-setting-admin1,0412.5353.73125.90
Delete /wp-admin/admin.php?page=kytracker_admin_reg_del8501.9736.9973.71
Upgrades /wp-admin/admin.php?page=kytracker_admin_upg1,1112.3752.96165.64
Install Tracker /wp-admin/admin.php?page=kytracker_admin_page1,1352.3860.49117.29
Edit /wp-admin/admin.php?page=kytracker_admin_reg_view8501.9735.9769.64
Delete /wp-admin/admin.php?page=kytracker_admin_upg_del8501.9735.4570.18
Edit /wp-admin/admin.php?page=kytracker_admin_upg_edit8501.9757.7775.15
Delete /wp-admin/admin.php?page=kytracker_admin_prods_del8501.9737.0276.01
Add /wp-admin/admin.php?page=kytracker_admin_upg_add1,1012.5454.2885.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_kyght_producttry
    • wp_kyght_companytry
    • wp_kyght_upgrade
  • The uninstall procedure has failed, leaving 1 option in the database
    • jal_db_version

Smoke tests 50% 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
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=kytracker_admin_prods_del
    • > Notice in wp-content/plugins/install-tracker/admin.php+541
    Undefined index: id

SRP 50% 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
The following issues need your attention
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/install-tracker/installtrial.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/install-tracker/installtrial.php:34
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/install-tracker/installtrial.php on line 23
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/install-tracker/installtrial.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/install-tracker/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/install-tracker/options.php:119

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • License uri: Invalid url: ""
Please take inspiration from this readme.txt

install-tracker/installtrial.php 92% from 13 tests

The principal PHP file in "Install Tracker" v. 1.7 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("install-tracker.php" instead of "installtrial.php")

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 plugin2,041 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP32471151,161
SVG444829
JavaScript21051

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods866.67%
▷ Protected methods325.00%
▷ Private methods18.33%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.67KB0.68KB0.00%
icon.png0.67KB0.68KB0.00%
images/icon16.png0.80KB0.75KB▼ 6.22%