Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼289.04ms] Passed 4 tests
Analyzing server-side resources used by Advanced Related Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 55.59 ▲6.65 |
Dashboard /wp-admin | 3.53 ▲0.12 | 31.74 ▼1.17 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 42.36 ▲7.35 |
Add New Post /wp-admin/post-new.php | 7.37 ▲0.37 | 92.98 ▼1,158.99 |
Media Library /wp-admin/upload.php | 3.43 ▲0.14 | 20.91 ▼2.66 |
Our products /wp-admin/admin.php?page=advanced-related-posts-featured-plugins | 3.53 | 25.02 |
PRO Features /wp-admin/admin.php?page=advanced-related-posts-related-posts-features | 3.51 | 86.17 |
Display after post /wp-admin/admin.php?page=advanced-related-posts | 3.84 | 33.42 |
Widget settings /wp-admin/admin.php?page=advanced-related-posts-wiget-settings | 3.82 | 32.49 |
Server storage [IO: ▲3.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 143 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_aysarp_settings |
New WordPress options |
---|
ays_advanced_related_posts_db_version |
widget_advanced_related_posts |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Related Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,943 ▲217 | 16.24 ▲0.27 | 9.61 ▲3.55 | 2.14 ▼0.42 |
Dashboard /wp-admin | 2,935 ▲81 | 6.23 ▲0.07 | 114.85 ▼19.01 | 167.51 ▲6.58 |
Posts /wp-admin/edit.php | 2,729 ▲35 | 3.23 ▼0.01 | 66.93 ▲2.67 | 140.74 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,759 ▲98 | 19.24 ▲3.08 | 384.15 ▼28.45 | 204.45 ▲51.13 |
Media Library /wp-admin/upload.php | 1,738 ▲43 | 5.52 ▲0.01 | 121.21 ▼56.42 | 197.58 ▲2.41 |
Our products /wp-admin/admin.php?page=advanced-related-posts-featured-plugins | 2,097 | 7.47 | 99.88 | 206.22 |
PRO Features /wp-admin/admin.php?page=advanced-related-posts-related-posts-features | 2,197 | 7.55 | 97.30 | 190.19 |
Display after post /wp-admin/admin.php?page=advanced-related-posts | 6,671 | 11.08 | 226.84 | 215.59 |
Widget settings /wp-admin/admin.php?page=advanced-related-posts-wiget-settings | 6,563 | 10.97 | 225.69 | 199.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_advanced_related_posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-related-posts/admin/partials/advanced-related-posts-admin-display.php
- > /wp-content/plugins/advanced-related-posts/admin/partials/settings/advanced-related-posts-settings-admin-display.php
- > /wp-content/plugins/advanced-related-posts/admin/partials/under-posts/advanced-related-under-posts-admin-display.php
- > /wp-content/plugins/advanced-related-posts/public/partials/advanced-related-posts-public-display.php
- 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-related-posts/admin/partials/settings/actions/partials/advanced-related-posts-settings-actions-tab1.php:2
- > PHP Warning
require_once(ADVANCED_RELATED_POSTS_ADMIN_PATH/partials/under-posts/actions/advanced-related-posts-under-posts-actions-options.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-related-posts/admin/partials/under-posts/actions/advanced-related-posts-under-posts-actions.php on line 2
- > PHP Warning
require_once(ADVANCED_RELATED_POSTS_ADMIN_PATH/partials/settings/actions/advanced-related-posts-settings-actions-options.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-related-posts/admin/partials/settings/actions/advanced-related-posts-settings-actions.php on line 2
- > PHP Notice
Undefined variable: class_prefix in wp-content/plugins/advanced-related-posts/admin/partials/under-posts/actions/partials/advanced-related-posts-under-posts-actions-tab1.php on line 1
- > PHP Notice
Undefined variable: ays_tab in wp-content/plugins/advanced-related-posts/admin/partials/settings/actions/partials/advanced-related-posts-settings-actions-tab4.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-related-posts/admin/partials/under-posts/actions/partials/advanced-related-posts-under-posts-actions-tab4.php:2
- > PHP Notice
Undefined variable: ays_tab in wp-content/plugins/advanced-related-posts/admin/partials/under-posts/actions/partials/advanced-related-posts-under-posts-actions-tab1.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-related-posts/includes/metabox/advanced-related-posts-metabox.php:151
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Related_Posts_Widget' not found in wp-content/plugins/advanced-related-posts/widget/partials/class-advanced-related-posts-widget-elegant-layout.php:31
- > PHP Notice
Undefined variable: class_prefix in wp-content/plugins/advanced-related-posts/admin/partials/under-posts/actions/partials/advanced-related-posts-under-posts-actions-tab2.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in advanced-related-posts/assets to your readme.txt
advanced-related-posts/advanced-related-posts.php Passed 13 tests
The main PHP file in "Advanced Related Posts" ver. 1.1.9 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis 97% from 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 plugin12,582 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,757 | 2,080 | 6,783 |
SVG | 17 | 0 | 3 | 2,841 |
CSS | 18 | 310 | 171 | 1,978 |
JavaScript | 14 | 153 | 131 | 980 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 231)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 65.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 332.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 231.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 17 | 14.53% |
▷ Public methods | 99 | 84.62% |
▷ Protected methods | 13 | 11.11% |
▷ Private methods | 5 | 4.27% |
Functions | 13 | |
▷ Named functions | 5 | 38.46% |
▷ Anonymous functions | 8 | 61.54% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
41 PNG files occupy 0.82MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/themes/elegant_theme_under_posts250.png | 5.16KB | 2.67KB | ▼ 48.27% |
admin/images/integrations/slack_logo.png | 2.33KB | 1.87KB | ▼ 19.83% |
admin/images/black_friday_greate_bundle_mobile.png | 18.39KB | 18.43KB | 0.00% |
admin/images/winter_bundle_logo_background_2.png | 357.75KB | 171.13KB | ▼ 52.16% |
admin/images/icons/users2.png | 1.30KB | 1.53KB | 0.00% |