Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/best-related-posts/plugin.php+31
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.63ms] Passed 4 tests
Analyzing server-side resources used by Best Related Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.74 ▼36.99 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.52 ▼46.24 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.09 ▼43.04 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.71 ▼88.24 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.20 ▼29.80 |
Best Related Posts /wp-admin/options-general.php?page=best-related-posts/options.php | 2.05 | 5.46 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
boposts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Best Related Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.66 ▼0.72 | 2.14 ▲0.24 | 43.08 ▼7.24 |
Dashboard /wp-admin | 2,210 ▲19 | 4.89 ▼0.01 | 110.04 ▼9.23 | 40.17 ▼7.84 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.02 | 39.41 ▲2.70 | 34.64 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.22 ▼0.07 | 685.46 ▲25.09 | 54.94 ▼12.04 |
Media Library /wp-admin/upload.php | 1,383 ▼5 | 4.24 ▲0.12 | 104.06 ▼9.34 | 42.01 ▼7.04 |
Best Related Posts /wp-admin/options-general.php?page=best-related-posts/options.php | 861 | 2.03 | 24.00 | 25.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/best-related-posts/plugin.php+31
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- boposts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=best-related-posts/options.php
- > Warning in wp-content/plugins/best-related-posts/plugin.php+31
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=best-related-posts/options.php
- > Warning in wp-content/plugins/best-related-posts/plugin.php+31
include(wp-content/plugins/best-related-posts/WPLANG_options.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/options-general.php?page=best-related-posts/options.php
- > Warning in wp-content/plugins/best-related-posts/plugin.php+31
include(): Failed opening 'wp-content/plugins/best-related-posts/WPLANG_options.php' for inclusion (include_path='.:/usr/share/php')
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=best-related-posts/options.php
- > Notice in wp-content/plugins/best-related-posts/options.php+81
Undefined variable: options
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=best-related-posts/options.php
- > Notice in wp-content/plugins/best-related-posts/options.php+81
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/best-related-posts/options.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: options in wp-content/plugins/best-related-posts/options.php on line 81
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/best-related-posts/options.php on line 50
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/best-related-posts/options.php on line 65
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/best-related-posts/options.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/best-related-posts/plugin.php:33
- > PHP Notice
Undefined variable: options in wp-content/plugins/best-related-posts/options.php on line 75
- > PHP Warning
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP) in wp-content/plugins/best-related-posts/plugin.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/best-related-posts/options.php on line 75
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/best-related-posts/options.php on line 81
- > PHP Notice
Undefined variable: options in wp-content/plugins/best-related-posts/options.php on line 65
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== best-related-posts ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Showing related posts to visitors.), #2 (Plugin Options Page for Admin.)
best-related-posts/plugin.php 92% from 13 tests
The primary PHP file in "Best Related Posts" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("best-related-posts.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected180 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 47 | 27 | 180 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin