Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.49ms] Passed 4 tests
Server-side resources used by Better Random Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.99 ▼9.62 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.51 ▼1.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.65 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.35 ▼21.32 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.69 ▼1.03 |
Better Random Redirect /wp-admin/options-general.php?page=better-random-redirect/admin.php | 3.29 | 35.15 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 14 new options
New WordPress options |
---|
brr_default_timeout |
brr_default_category |
widget_recent-posts |
widget_recent-comments |
brr_transient_id |
theysaidso_admin_options |
brr_query_posttype_category_pattern |
can_compress_scripts |
widget_theysaidso_widget |
brr_default_slug |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Better Random Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.80 ▲0.43 | 1.62 ▼0.46 | 44.74 ▲0.43 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼0.02 | 106.62 ▼13.26 | 41.93 ▼3.71 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▲0.03 | 35.88 ▼3.85 | 31.22 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 22.88 ▲5.39 | 647.33 ▼4.08 | 58.02 ▲2.49 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▲0.01 | 101.21 ▲3.57 | 45.98 ▲3.27 |
Better Random Redirect /wp-admin/options-general.php?page=better-random-redirect/admin.php | 1,011 | 1.83 | 27.78 | 32.17 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 14 options
- widget_recent-posts
- brr_transient_id
- brr_query_posttype_pattern
- can_compress_scripts
- widget_recent-comments
- brr_query_posttype_category_pattern
- brr_default_slug
- brr_default_posttype
- brr_default_category
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=better-random-redirect/admin.php
- > Notice in wp-content/plugins/better-random-redirect/admin.php+87
Undefined variable: lang
- > GET request to /wp-admin/options-general.php?page=better-random-redirect/admin.php
- > Notice in wp-content/plugins/better-random-redirect/classes/QtranslatexFilter.php+66
Undefined variable: output
SRP 50% 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'BrrFilter' not found in wp-content/plugins/better-random-redirect/classes/QtranslatexFilter.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/better-random-redirect/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== better-random-redirect ===
)
better-random-redirect/better-random-redirect.php 92% from 13 tests
"Better Random Redirect" version 1.3.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected535 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 53 | 42 | 460 |
PO File | 1 | 27 | 61 | 75 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 24 | 100.00% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin