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: ▲1.22MB] [CPU: ▲2.80ms] Passed 4 tests
Analyzing server-side resources used by Relevant - Related, Featured, Latest, and Popular Posts by BestWebSoft
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.72 ▲1.26 | 58.23 ▲14.24 |
Dashboard /wp-admin | 4.55 ▲1.25 | 58.18 ▲4.23 |
Posts /wp-admin/edit.php | 4.61 ▲1.25 | 57.55 ▲5.10 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 99.10 ▼12.39 |
Media Library /wp-admin/upload.php | 4.41 ▲1.18 | 52.94 ▲16.76 |
Server storage [IO: ▲5.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 126 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
bstwbsftwppdtplgns_options |
can_compress_scripts |
widget_pplrpsts_popular_posts_widget |
rltdpstsplgn_options |
widget_ltstpsts_latest_posts_widget |
widget_rltdpstsplgnwidget |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Relevant - Related, Featured, Latest, and Popular Posts by BestWebSoft
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.29 ▼0.96 | 1.77 ▼0.04 | 51.47 ▲9.43 |
Dashboard /wp-admin | 2,321 ▲130 | 5.89 ▲0.99 | 103.09 ▲0.71 | 42.94 ▼2.19 |
Posts /wp-admin/edit.php | 2,214 ▲125 | 2.24 ▲0.25 | 37.21 ▼4.19 | 36.34 ▼2.68 |
Add New Post /wp-admin/post-new.php | 6,378 ▲4,836 | 26.00 ▲7.69 | 962.77 ▲323.02 | 61.65 ▲3.48 |
Media Library /wp-admin/upload.php | 1,503 ▲115 | 4.24 ▲0.06 | 102.36 ▼1.10 | 48.54 ▲5.99 |
BWS Panel /wp-admin/related-posts-plugin.php?page=rltdpstsplgn-bws-panel | 26 | 0.44 | 0.10 | 14.13 |
Settings /wp-admin/related-posts-plugin.php | 26 | 0.44 | 0.12 | 8.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/relevant/includes/widgets.php:16
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/relevant/includes/class-rltdpstsplgn-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/relevant/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/relevant/bws_menu/class-bws-settings.php:1452
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/relevant/includes/widgets.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/related-posts-plugin.php?page=rltdpstsplgn-bws-panel
- > Network (severe)
wp-admin/related-posts-plugin.php?page=rltdpstsplgn-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/related-posts-plugin.php
- > Network (severe)
wp-admin/related-posts-plugin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Related Posts Widget.), #2 (Latest Posts Widget.), #3 (Popular Posts Widget.), #4 (The displaying of Featured Posts block with Custom plugin settings (default theme).), #5 (The displaying of Featured Posts block with Custom plugin settings (BestWebSoft theme).), #6 (Related Posts Settings page.), #7 (Featured Posts settings.), #8 (Latest Posts Settings page.), #9 (Popular Posts Settings page.), #10 (Relevant widgets settings.)
relevant/related-posts-plugin.php 92% from 13 tests
The principal PHP file in "Relevant - Related, Featured, Latest, and Popular Posts by BestWebSoft" v. 1.4.4 is loaded by WordPress automatically on each request
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 ("relevant.php" instead of "related-posts-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected21,658 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 10 | 3,898 | 6,303 | 8,099 |
PHP | 10 | 635 | 703 | 7,200 |
CSS | 10 | 193 | 281 | 5,657 |
JavaScript | 7 | 32 | 112 | 552 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 77.83 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 11.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 14.29% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
68 PNG files occupy 3.86MB with 1.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_cd0a0a_256x240.png | 4.49KB | 4.20KB | ▼ 6.46% |
screenshot-9.png | 80.69KB | 38.04KB | ▼ 52.86% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
bws_menu/icons/themes/renty.png | 657.95KB | 198.11KB | ▼ 69.89% |
bws_menu/images/close_banner.png | 0.44KB | 0.49KB | 0.00% |