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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.11ms] Passed 4 tests
Analyzing server-side resources used by WP Random Post Inside
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 48.34 ▼1.42 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.66 ▼1.98 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.28 ▲3.13 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 83.40 ▼11.36 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 36.67 ▲2.34 |
Wp random post inside Settings /wp-admin/options-general.php?page=wprpi-settings | 3.32 | 35.89 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
wprpi_notice_dismiss |
can_compress_scripts |
wprpi_version |
Browser metrics Passed 4 tests
A check of browser resources used by WP Random Post Inside
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.91 ▼0.46 | 1.51 ▼0.26 | 41.56 ▼2.83 |
Dashboard /wp-admin | 2,251 ▲63 | 5.25 ▼0.61 | 117.68 ▲17.84 | 43.28 ▼0.41 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 2.34 ▲0.32 | 37.28 ▼0.63 | 31.53 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 18.42 ▼4.73 | 623.38 ▼126.31 | 33.80 ▼17.35 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.56 ▲0.37 | 102.69 ▲0.67 | 46.10 ▲1.31 |
Wp random post inside Settings /wp-admin/options-general.php?page=wprpi-settings | 1,535 | 2.69 | 55.96 | 34.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- wprpi_version
- widget_recent-comments
- wprpi_notice_dismiss
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-random-post-inside/wprpi_functions.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-random-post-inside/wprpi_settings.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: random posts inside, wordpress posts, related posts inside, wordpress random posts, wp related posts...
wp-random-post-inside/index.php 92% from 13 tests
The entry point to "WP Random Post Inside" version 1.6.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-random-post-inside.php" instead of "index.php")
Code Analysis Passed 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 plugin914 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 128 | 109 | 552 |
PO File | 2 | 54 | 8 | 169 |
CSS | 1 | 3 | 9 | 146 |
JavaScript | 3 | 6 | 5 | 47 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 13 | |
▷ Named functions | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 41.90KB | 22.14KB | ▼ 47.15% |
screenshot.png | 20.45KB | 13.67KB | ▼ 33.13% |
images/wprpi_faq.png | 9.61KB | 4.27KB | ▼ 55.61% |
images/wprpi_logo.png | 4.03KB | 1.62KB | ▼ 59.84% |