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.00MB] [CPU: ▼3.65ms] Passed 4 tests
This is a short check of server-side resources used by Sticky Recent Random Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.38 ▲0.56 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.91 ▼16.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.62 ▼1.78 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 115.69 ▲16.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.59 ▲3.07 |
Sticky Recent Random Posts /wp-admin/options-general.php?page=mn-customize-random-posts | 3.20 | 30.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
mn_sticky_recent_posts |
Browser metrics Passed 4 tests
A check of browser resources used by Sticky Recent Random Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.41 ▲0.12 | 1.64 ▼0.14 | 37.57 ▼3.04 |
Dashboard /wp-admin | 2,214 ▲37 | 5.83 ▲0.30 | 92.41 ▲5.40 | 41.94 ▲0.96 |
Posts /wp-admin/edit.php | 2,130 ▲33 | 2.29 ▲0.32 | 40.85 ▲3.68 | 35.35 ▲3.38 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 23.32 ▲4.95 | 617.20 ▲8.04 | 35.26 ▼37.25 |
Media Library /wp-admin/upload.php | 1,425 ▲22 | 4.42 ▲0.22 | 102.03 ▼2.95 | 43.46 ▼8.12 |
Sticky Recent Random Posts /wp-admin/options-general.php?page=mn-customize-random-posts | 1,524 | 2.61 | 60.72 | 36.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- mn_sticky_recent_posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sticky-recent-random-posts/sticky-recent-random-posts.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: recent post, sticky custom post, sticky recent random post, random post, random custom post...
sticky-recent-random-posts/sticky-recent-random-posts.php Passed 13 tests
The main PHP script in "Sticky Recent Random Posts" version 1.2 is automatically included on every request by WordPress
115 characters long description:
This plugin will show random recent post as sticky bar. you can customize color and other properties of sticky bar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin285 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 25 | 211 |
CSS | 1 | 2 | 0 | 45 |
JavaScript | 2 | 2 | 0 | 29 |
PHP code Passed 2 tests
Analyzing 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.32 |
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 | 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
PNG images were not found in this plugin