Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.63ms] Passed 4 tests
An overview of server-side resources used by 404 Related Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.26 ▼0.96 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.34 ▼6.33 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.05 ▲2.76 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 87.95 ▼8.22 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.20 ▼3.00 |
404 Related Posts /wp-admin/options-general.php?page=rpp_settings | 3.28 | 35.44 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
rpp_activation_time |
rpp_post_types |
db_upgraded |
rpp_hide_admin_notice |
rpp_display_notice_time |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for 404 Related Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.00 | 1.85 ▲0.29 | 41.42 ▼3.31 |
Dashboard /wp-admin | 2,196 ▲19 | 5.64 ▲0.04 | 84.43 ▼5.69 | 38.35 ▼9.14 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.05 | 37.07 ▲1.59 | 33.17 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 17.91 ▼5.16 | 603.26 ▼90.51 | 76.00 ▲20.56 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.05 | 96.67 ▼22.52 | 43.71 ▼4.64 |
404 Related Posts /wp-admin/options-general.php?page=rpp_settings | 1,002 | 2.04 | 23.02 | 47.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- rpp_post_types
- rpp_hide_admin_notice
- rpp_display_notice_time
- widget_recent-posts
- rpp_activation_time
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/related-posts-on-404-page/admin/partials/signup-form.php
- > /wp-content/plugins/related-posts-on-404-page/templates/404-related-posts.php
- > /wp-content/plugins/related-posts-on-404-page/admin/partials/buy-coffee-button.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: errors in wp-content/plugins/related-posts-on-404-page/admin/partials/settings.php on line 27
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/related-posts-on-404-page/admin/partials/settings.php on line 35
- > PHP Notice
Undefined variable: action in wp-content/plugins/related-posts-on-404-page/admin/partials/settings.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function Rpp_buy_coffee() in wp-content/plugins/related-posts-on-404-page/admin/partials/sidebar.php:54
- > PHP Notice
Undefined variable: success in wp-content/plugins/related-posts-on-404-page/admin/partials/settings.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function Rpp_buy_coffee() in wp-content/plugins/related-posts-on-404-page/admin/partials/sidebar.php:54
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/related-posts-on-404-page/admin/partials/settings.php on line 55
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/related-posts-on-404-page/admin/partials/notice-info.php:19
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/related-posts-on-404-page/admin/partials/settings.php on line 27
- > PHP Warning
Use of undefined constant RPP_KOFI_LINK - assumed 'RPP_KOFI_LINK' (this will throw an Error in a future version of PHP) in wp-content/plugins/related-posts-on-404-page/admin/partials/buy-coffee-button.php on line 21
- > PHP Notice
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: related content, 404 page, related links, posts, related posts...
related-posts-on-404-page/wp-404-related-posts.php 85% from 13 tests
This is the main PHP file of "404 Related Posts" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("related-posts-on-404-page.php" instead of "wp-404-related-posts.php")
- Description: Keep the plugin description shorter than 140 characters (currently 202 characters long)
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
No dangerous file extensions were detected926 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 371 | 349 | 794 |
CSS | 1 | 25 | 5 | 124 |
JavaScript | 1 | 7 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 26 | |
▷ Static methods | 13 | 50.00% |
▷ Public methods | 13 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 50.00% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 1.71KB | 0.83KB | ▼ 51.55% |
assets/icon-256x256.png | 1.85KB | 0.75KB | ▼ 59.39% |