Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-related-items/wri.php+70
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.26MB] [CPU: ▲0.52ms] Passed 4 tests
Server-side resources used by WP Related Posts and Products (WRI)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 47.64 ▲0.34 |
Dashboard /wp-admin | 3.57 ▲0.27 | 55.29 ▲0.68 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 55.65 ▲2.16 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 101.68 ▼1.09 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 44.29 ▲6.55 |
WP Related Items (WRI) /wp-admin/options-general.php?page=wsl-post-relater-products | 3.46 | 39.31 |
Server storage [IO: ▲7.64MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- There were 13 files (15.49KB) illegally modified outside of "wp-content/plugins/wp-related-items/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/wri_template/template-wri-thumbnails-widget.php
- (new file) wp-content/themes/twentytwentyone/wri_template/template-wri-after_loop.php
- (new file) wp-content/themes/twentytwentyone/wri_template/styles-wri-thumbnails_woocommerce.css
- (new file) wp-content/themes/twentytwentyone/wri_template/template-wri-before_loop.php
- (new file) wp-content/themes/twentytwentyone/wri_template/template-wri-list.php
- (new file) wp-content/themes/twentytwentyone/wri_template/template-wri-thumbnails-widget-woocommerce.php
- (new file) wp-content/themes/twentytwentyone/wri_template/template-wri-thumbnails-woocommerce.php
- (new file) wp-content/themes/twentytwentyone/wri_template/styles-wri-thumbnails-widget.php
- (new file) wp-content/themes/twentytwentyone/wri_template/template-wri-list-widget.php
- (new file) wp-content/themes/twentytwentyone/wri_template/styles-wri-thumbnails.php
- ...
Filesystem: 292 new files
Database: no new tables, 19 new options
New WordPress options |
---|
db_upgraded |
wri_reference2related_items__attachment--attachment |
wri_reference2related_items__post--page |
wri_reference2related_items__post--post |
wri_reference2related_items__attachment--post |
wri_related_items___attachment |
widget_recent-posts |
theysaidso_admin_options |
wri_reference2related_items__page--page |
wri_general_settings |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Related Posts and Products (WRI)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.28 ▼0.30 | 1.72 ▼0.05 | 43.00 ▼1.96 |
Dashboard /wp-admin | 2,203 ▲26 | 5.59 ▼0.08 | 94.62 ▲6.01 | 38.27 ▼6.63 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.99 ▼0.02 | 38.76 ▲2.68 | 31.21 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 18.69 ▼4.86 | 615.47 ▼100.99 | 72.89 ▲22.21 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.19 ▲0.00 | 99.63 ▼11.09 | 45.32 ▼3.31 |
WP Related Items (WRI) /wp-admin/options-general.php?page=wsl-post-relater-products | 1,078 | 2.13 | 24.94 | 29.13 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 19 options in the database
- wri_related_items___attachment
- wri_reference2related_items__attachment--post
- wri_reference2related_items__post--post
- widget_theysaidso_widget
- wri_reference2related_items__attachment--attachment
- theysaidso_admin_options
- wri_reference2related_items__page--page
- wri_reference2related_items__post--attachment
- widget_recent-comments
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-related-items/wri_template/styles-wri-thumbnails-widget.php
- > /wp-content/plugins/wp-related-items/wri_template/styles-wri-thumbnails.php
- 112× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-related-items/wri_template/template-wri-before_loop.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-related-items/advanced-custom-fields/includes/forms/form-comment.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-related-items/wri_template/template-wri-thumbnails-widget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/wp-related-items/advanced-custom-fields/includes/acf-form-functions.php:4
- > PHP Warning
require_once(../ThumbLib.inc.php): failed to open stream: No such file or directory in wp-content/plugins/wp-related-items/phpthumb/examples/save_differentformat.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/wp-related-items/advanced-custom-fields/includes/acf-field-group-functions.php:4
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-related-items/advanced-custom-fields/includes/fields/class-acf-field-number.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-related-items/advanced-custom-fields/includes/admin/views/html-admin-page-upgrade-network.php:24
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-related-items/advanced-custom-fields/includes/fields/class-acf-field-url.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-related-items/advanced-custom-fields/includes/fields/class-acf-field-color_picker.php:5
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
wp-related-items/wri.php 85% from 13 tests
The primary PHP file in "WP Related Posts and Products (WRI)" version 1.2.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-related-items.php" instead of "wri.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 351 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected93,065 lines of code in 232 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 34 | 23,656 | 38,672 | 50,119 |
JavaScript | 12 | 6,680 | 6,572 | 22,200 |
PHP | 168 | 11,887 | 19,130 | 18,893 |
CSS | 14 | 222 | 61 | 1,674 |
JSON | 1 | 0 | 0 | 124 |
SVG | 1 | 18 | 0 | 30 |
Markdown | 2 | 13 | 0 | 25 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 112 | |
▷ Abstract classes | 1 | 0.89% |
▷ Concrete classes | 111 | 99.11% |
▷ Final classes | 0 | 0.00% |
Methods | 796 | |
▷ Static methods | 7 | 0.88% |
▷ Public methods | 779 | 97.86% |
▷ Protected methods | 14 | 1.76% |
▷ Private methods | 3 | 0.38% |
Functions | 432 | |
▷ Named functions | 432 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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
10 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
am/assets/images/complete.png | 0.76KB | 0.81KB | 0.00% |
advanced-custom-fields/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
advanced-custom-fields/assets/images/acf-logo.png | 3.40KB | 3.39KB | 0.23% |
advanced-custom-fields/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
am/assets/images/warn.png | 0.65KB | 0.68KB | 0.00% |