Benchmarks
Plugin footprint 48% 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 gracefully, with no errors
Server metrics [RAM: ▼0.84MB] [CPU: ▼29.72ms] Passed 4 tests
Analyzing server-side resources used by IM WP Linker Lite for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 39.31 ▼3.90 |
Dashboard /wp-admin | 3.10 ▼0.20 | 23.53 ▼24.47 |
Posts /wp-admin/edit.php | 3.10 ▼0.25 | 24.31 ▼22.75 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.78 | 27.93 ▼62.15 |
Media Library /wp-admin/upload.php | 3.10 ▼0.12 | 24.11 ▼9.52 |
IM WP Linker Lite /wp-admin/options-general.php?page=im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php | 3.11 | 24.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_im_wp_linker_lite_related |
wp_im_wp_linker_lite_related_temp |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
im-wp-linker-lite-active |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IM WP Linker Lite for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.30 ▼0.99 | 1.76 ▼0.38 | 42.38 ▼9.36 |
Dashboard /wp-admin | 2,207 ▲22 | 5.81 ▲0.03 | 95.99 ▼8.67 | 39.62 ▲1.35 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 40.13 ▲1.93 | 35.39 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.58 ▼4.63 | 659.30 ▲63.26 | 65.74 ▲5.20 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.20 ▼0.03 | 106.39 ▼0.55 | 46.47 ▲1.46 |
IM WP Linker Lite /wp-admin/options-general.php?page=im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php | 924 | 2.19 | 22.84 | 38.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure failed, leaving 2 tables in the database
- wp_im_wp_linker_lite_related
- wp_im_wp_linker_lite_related_temp
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- im-wp-linker-lite-active
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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 take a closer look at the following
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require_once(IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php): failed to open stream: No such file or directory in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin.php on line 41
- > PHP Warning
Use of undefined constant IM_WP_LINKER_LITE_DIR - assumed 'IM_WP_LINKER_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-processor.class.php on line 41
- > PHP Warning
Use of undefined constant IM_WP_LINKER_LITE_DIR - assumed 'IM_WP_LINKER_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php:43
- > PHP Warning
Use of undefined constant IM_WP_LINKER_LITE_DIR - assumed 'IM_WP_LINKER_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-core.php on line 41
- > PHP Fatal error
require_once(): Failed opening required 'IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-core.php on line 41
- > PHP Fatal error
require_once(): Failed opening required 'IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin-product.php on line 42
- > PHP Warning
require_once(IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php): failed to open stream: No such file or directory in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-processor.class.php on line 41
- > PHP Fatal error
require_once(): Failed opening required 'IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin.php on line 41
- > PHP Warning
Use of undefined constant IM_WP_LINKER_LITE_DIR - assumed 'IM_WP_LINKER_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin-product.php on line 42
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: product, woocommerce, internal link
im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php 92% from 13 tests
The primary PHP file in "IM WP Linker Lite for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("im-wp-linker-lite-for-woocommerce.php" instead of "im-wp-linker-lite.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 plugin1,139 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 261 | 408 | 1,025 |
CSS | 1 | 8 | 9 | 84 |
JavaScript | 1 | 10 | 9 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 32 | 76.19% |
▷ Protected methods | 10 | 23.81% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected