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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 60.98 ▲6.60 |
Dashboard /wp-admin | 3.46 ▲0.05 | 32.02 ▼8.92 |
Posts /wp-admin/edit.php | 3.68 ▲0.05 | 36.31 ▼1.64 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 94.68 ▼1,210.73 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 28.02 ▼7.17 |
Products /wp-admin/admin.php?page=kytracker_admin_prods | 3.31 | 24.76 |
Install Tracker /wp-admin/options-general.php?page=kytracker-setting-admin | 3.31 | 25.70 |
Delete /wp-admin/admin.php?page=kytracker_admin_reg_del | 3.29 | 22.07 |
Upgrades /wp-admin/admin.php?page=kytracker_admin_upg | 3.31 | 22.66 |
Install Tracker /wp-admin/admin.php?page=kytracker_admin_page | 3.31 | 23.91 |
Edit /wp-admin/admin.php?page=kytracker_admin_reg_view | 3.29 | 22.13 |
Delete /wp-admin/admin.php?page=kytracker_admin_upg_del | 3.29 | 22.37 |
Edit /wp-admin/admin.php?page=kytracker_admin_upg_edit | 3.29 | 45.65 |
Delete /wp-admin/admin.php?page=kytracker_admin_prods_del | 3.29 | 20.25 |
Add /wp-admin/admin.php?page=kytracker_admin_upg_add | 3.31 | 22.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,842 ▲98 | 15.81 ▲0.21 | 5.83 ▼1.30 | 2.08 ▼0.02 |
Dashboard /wp-admin | 2,938 ▲87 | 6.10 ▼0.10 | 121.16 ▼17.71 | 190.86 ▼25.44 |
Posts /wp-admin/edit.php | 2,706 ▲18 | 3.12 ▼0.12 | 64.53 ▲2.66 | 141.39 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,783 ▲66 | 21.06 ▼1.35 | 464.86 ▲7.92 | 204.47 ▲48.81 |
Media Library /wp-admin/upload.php | 1,746 ▲48 | 5.55 ▲0.05 | 125.54 ▼15.20 | 266.15 ▲67.07 |
Products /wp-admin/admin.php?page=kytracker_admin_prods | 1,099 | 2.38 | 53.71 | 104.94 |
Install Tracker /wp-admin/options-general.php?page=kytracker-setting-admin | 1,041 | 2.53 | 53.73 | 125.90 |
Delete /wp-admin/admin.php?page=kytracker_admin_reg_del | 850 | 1.97 | 36.99 | 73.71 |
Upgrades /wp-admin/admin.php?page=kytracker_admin_upg | 1,111 | 2.37 | 52.96 | 165.64 |
Install Tracker /wp-admin/admin.php?page=kytracker_admin_page | 1,135 | 2.38 | 60.49 | 117.29 |
Edit /wp-admin/admin.php?page=kytracker_admin_reg_view | 850 | 1.97 | 35.97 | 69.64 |
Delete /wp-admin/admin.php?page=kytracker_admin_upg_del | 850 | 1.97 | 35.45 | 70.18 |
Edit /wp-admin/admin.php?page=kytracker_admin_upg_edit | 850 | 1.97 | 57.77 | 75.15 |
Delete /wp-admin/admin.php?page=kytracker_admin_prods_del | 850 | 1.97 | 37.02 | 76.01 |
Add /wp-admin/admin.php?page=kytracker_admin_upg_add | 1,101 | 2.54 | 54.28 | 85.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
- > PHP Notice
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: ""
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 247 | 115 | 1,161 |
SVG | 4 | 4 | 4 | 829 |
JavaScript | 2 | 1 | 0 | 51 |
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 code | 0.17 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 66.67% |
▷ Protected methods | 3 | 25.00% |
▷ Private methods | 1 | 8.33% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.67KB | 0.68KB | 0.00% |
icon.png | 0.67KB | 0.68KB | 0.00% |
images/icon16.png | 0.80KB | 0.75KB | ▼ 6.22% |