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
Install script ran successfully
Server metrics [RAM: ▲0.85MB] [CPU: ▼3.50ms] Passed 4 tests
Server-side resources used by Advanced Related Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 54.44 ▲15.36 |
Dashboard /wp-admin | 4.19 ▲0.85 | 49.98 ▼15.23 |
Posts /wp-admin/edit.php | 4.23 ▲0.87 | 51.27 ▲5.97 |
Add New Post /wp-admin/post-new.php | 6.95 ▲1.07 | 94.89 ▼6.92 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 34.11 ▲2.20 |
PRO Features /wp-admin/admin.php?page=advanced-related-posts-related-posts-features | 4.16 | 42.74 |
Display after post /wp-admin/admin.php?page=advanced-related-posts | 4.41 | 50.41 |
Widget settings /wp-admin/admin.php?page=advanced-related-posts-wiget-settings | 4.40 | 50.17 |
Our products /wp-admin/admin.php?page=advanced-related-posts-featured-plugins | 4.17 | 43.06 |
Server storage [IO: ▲3.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 152 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_aysarp_settings |
New WordPress options |
---|
ays_advanced_related_posts_db_version |
ays_arp_banner_time |
widget_recent-comments |
ays_arp_sale_notification |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_advanced_related_posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Related Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,987 ▲215 | 13.79 ▼0.48 | 9.29 ▲7.35 | 30.12 ▼14.99 |
Dashboard /wp-admin | 2,239 ▲62 | 5.55 ▼0.12 | 94.22 ▼5.02 | 80.60 ▲35.01 |
Posts /wp-admin/edit.php | 2,162 ▲59 | 1.99 ▼0.02 | 38.48 ▼1.75 | 37.42 ▲3.82 |
Add New Post /wp-admin/post-new.php | 6,300 ▲4,764 | 25.87 ▲2.86 | 925.93 ▲273.86 | 60.46 ▲14.72 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.11 ▼0.09 | 97.27 ▲0.28 | 75.72 ▲34.98 |
PRO Features /wp-admin/admin.php?page=advanced-related-posts-related-posts-features | 1,869 | 5.56 | 75.14 | 211.77 |
Display after post /wp-admin/admin.php?page=advanced-related-posts | 5,153 | 8.67 | 240.47 | 161.09 |
Widget settings /wp-admin/admin.php?page=advanced-related-posts-wiget-settings | 5,076 | 8.59 | 228.97 | 145.96 |
Our products /wp-admin/admin.php?page=advanced-related-posts-featured-plugins | 1,842 | 5.44 | 60.44 | 132.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- widget_recent-posts
- ays_arp_banner_time
- widget_theysaidso_widget
- widget_advanced_related_posts
- widget_recent-comments
- theysaidso_admin_options
- ays_arp_sale_notification
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advanced-related-posts/public/partials/advanced-related-posts-public-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/admin/partials/advanced-related-posts-admin-display.php
- > /wp-content/plugins/advanced-related-posts/admin/partials/settings/advanced-related-posts-settings-admin-display.php
- 42× 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/advanced-related-posts/includes/metabox/advanced-related-posts-metabox.php:151
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-related-posts/admin/partials/under-posts/actions/advanced-related-posts-under-posts-actions-options.php:7
- > 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-grid-layout.php:31
- > 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-tab2.php:2
- > PHP Notice
Undefined variable: ays_tab in wp-content/plugins/advanced-related-posts/admin/partials/settings/actions/partials/advanced-related-posts-settings-actions-tab3.php on line 1
- > PHP Warning
Use of undefined constant ADVANCED_RELATED_POSTS_ADMIN_PATH - assumed 'ADVANCED_RELATED_POSTS_ADMIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-related-posts/admin/partials/under-posts/actions/advanced-related-posts-under-posts-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-tab2.php on line 1
- > 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-tab1.php on line 1
- > 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-tab4.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add descriptions for 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 92% from 13 tests
This is the main PHP file of "Advanced Related Posts" version 1.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin13,608 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,801 | 2,145 | 6,994 |
SVG | 23 | 0 | 3 | 2,917 |
CSS | 18 | 443 | 936 | 2,717 |
JavaScript | 14 | 153 | 132 | 980 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 231)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 66.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 332.00 |
Average method complexity | 9.81 |
▷ 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 | 121 | |
▷ Static methods | 18 | 14.88% |
▷ Public methods | 103 | 85.12% |
▷ Protected methods | 13 | 10.74% |
▷ Private methods | 5 | 4.13% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
43 PNG files occupy 0.84MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icons/icon-popup-128x128.png | 11.65KB | 8.54KB | ▼ 26.73% |
admin/images/themes/grid_theme_under_posts250.png | 2.26KB | 0.95KB | ▼ 57.75% |
admin/images/avatars/personal_avatar.png | 31.34KB | 11.84KB | ▼ 62.23% |
admin/images/icons/icon-sccp-128x128.png | 1.18KB | 1.18KB | 0.00% |
admin/images/themes/classy_theme_widget250.png | 6.07KB | 3.18KB | ▼ 47.63% |