Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼9.77ms] Passed 4 tests
An overview of server-side resources used by Random Post Plugin - Redirect URL to Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 36.04 ▼7.10 |
Dashboard /wp-admin | 3.48 ▲0.13 | 45.07 ▼12.18 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 45.26 ▲3.02 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 89.55 ▼20.79 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 33.00 ▲0.99 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
redirect-url-to-post-onboarding |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Random Post Plugin - Redirect URL to Post
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲69 | 14.73 ▲0.38 | 1.64 ▼0.40 | 41.36 ▼1.73 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▲0.07 | 89.37 ▲6.03 | 41.87 ▲4.18 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 38.30 ▼0.59 | 34.96 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.94 ▼0.23 | 604.84 ▼2.92 | 59.07 ▲7.84 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.11 | 97.20 ▼1.97 | 45.36 ▲1.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: random, recent, filter, redirect, random post
redirect-url-to-post/redirect-url-to-post.php Passed 13 tests
The main PHP file in "Random Post Plugin - Redirect URL to Post" ver. 0.23.0 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Redirects to a post based on parameters in the URL
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
Success! There were no dangerous files found in this plugin848 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 683 | 479 | 848 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 153.00 |
▷ Minimum class complexity | 153.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 6.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 24.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 75.86% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin