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.25MB] [CPU: ▼181.05ms] Passed 4 tests
Analyzing server-side resources used by Intrackt Companion Products
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.14 | 17.73 ▼4.77 |
Dashboard /wp-admin | 3.39 ▲0.33 | 32.52 ▼5.52 |
Posts /wp-admin/edit.php | 3.44 ▲0.33 | 31.04 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.69 ▲0.25 | 69.01 ▼712.10 |
Media Library /wp-admin/upload.php | 3.27 ▲0.27 | 24.08 ▼0.02 |
Companion Products /wp-admin/admin.php?page=intracktcompanionproducts-main | 3.22 | 20.38 |
Intrackt /wp-admin/admin.php?page=intrackt-common | 3.24 | 20.37 |
--Log /wp-admin/admin.php?page=intracktcompanionproducts-log | 3.24 | 26.25 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_intrackt_log |
New WordPress options |
---|
intrackt_companionproducts |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for Intrackt Companion Products
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,253 ▼348 | 15.70 ▼0.38 | 0.35 ▼4.78 | 16.09 ▼58.79 |
Dashboard /wp-admin | 2,967 ▲74 | 6.14 ▼0.01 | 115.94 ▼16.69 | 164.90 ▼8.21 |
Posts /wp-admin/edit.php | 2,771 ▲31 | 3.25 ▲0.02 | 64.35 ▲1.53 | 138.72 ▲7.97 |
Add New Post /wp-admin/post-new.php | 3,829 ▲22 | 18.57 ▲0.14 | 419.99 ▼14.89 | 159.69 ▼0.08 |
Media Library /wp-admin/upload.php | 1,784 ▲32 | 5.55 ▲0.06 | 143.60 ▼2.92 | 193.71 ▲3.55 |
Companion Products /wp-admin/admin.php?page=intracktcompanionproducts-main | 1,012 | 2.16 | 38.12 | 108.60 |
Intrackt /wp-admin/admin.php?page=intrackt-common | 1,038 | 2.41 | 54.37 | 100.40 |
--Log /wp-admin/admin.php?page=intracktcompanionproducts-log | 1,058 | 2.33 | 52.73 | 107.98 |
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
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_intrackt_log
- Zombie WordPress options detected upon uninstall: 2 options
- recovery_mode_email_last_sent
- intrackt_companionproducts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=intracktcompanionproducts-main
- > Notice in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php+145
Trying to get property 'parent' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=intracktcompanionproducts-main
- > Notice in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php+154
Trying to get property 'name' of non-object
- > GET request to /wp-admin/admin.php?page=intracktcompanionproducts-main
- > Notice in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php+150
Trying to get property 'slug' of non-object
- > GET request to /wp-admin/admin.php?page=intracktcompanionproducts-main
- > Notice in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php+157
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/admin.php?page=intracktcompanionproducts-main
- > Error in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php+160
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php:160
Stack trace:
#0 wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php(192): Intrackt\CompanionProducts\PageMain::buildHierachy()
#1 wp-admin/includes/template.php(1743): Intrackt\CompanionProducts\PageMain::optionsCompanionCategory()
#2 wp-admin/includes/template.php(1701): do_settings_fields()
#3 wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php(272): do_settings_sections()
#4 wp-includes/class-wp-hook.php(303): Intrackt\CompanionProducts\PageMain::displayPage()
#5 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(470): WP_Hook->do_action()
#7 wp-admin/admin.php(2
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIRclass.Intrackt-Companion-Products-PageLog.php): failed to open stream: No such file or directory in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-Common.php on line 7
- > PHP Warning
Use of undefined constant INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIR - assumed 'INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-Manager.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIRclass.Intrackt-Companion-Products-PageLog.php' (include_path='.:/usr/share/php') in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-Actions.php on line 7
- > PHP Warning
require_once(INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIRclass.Intrackt-Companion-Products-PageLog.php): failed to open stream: No such file or directory in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-Actions.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/intrackt-companion-products/Intrackt-Companion-Products.php:28
- > PHP Fatal error
require_once(): Failed opening required 'INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIRclass.Intrackt-Companion-Products-PageMain.php' (include_path='.:/usr/share/php') in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-Manager.php on line 7
- > PHP Warning
Use of undefined constant INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIR - assumed 'INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-Actions.php on line 7
- > PHP Warning
require_once(INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIRclass.Intrackt-Companion-Products-PageMain.php): failed to open stream: No such file or directory in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-Manager.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIRclass.Intrackt-Companion-Products-PageLog.php' (include_path='.:/usr/share/php') in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php on line 7
- > PHP Warning
Use of undefined constant INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIR - assumed 'INTRACKT_COMPANIONPRODUCTS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/intrackt-companion-products/class.Intrackt-Companion-Products-PageMain.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
intrackt-companion-products/Intrackt-Companion-Products.php 85% from 13 tests
The main PHP script in "Intrackt Companion Products" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("intrackt-companion-products.php" instead of "Intrackt-Companion-Products.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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,009 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 504 | 1,069 | 1,009 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 27.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 60 | 100.00% |
▷ Public methods | 53 | 88.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin