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.04MB] [CPU: ▼0.43ms] Passed 4 tests
This is a short check of server-side resources used by mmfilesi-random-post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.53 ▲6.68 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.57 ▼5.47 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.57 ▼7.74 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 99.79 ▲14.62 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.23 ▲4.80 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_mmfilesi_random_post_widget |
Browser metrics Passed 4 tests
A check of browser resources used by mmfilesi-random-post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.59 ▼0.67 | 8.63 ▲7.04 | 39.83 ▼1.06 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼1.01 | 109.38 ▲6.63 | 46.06 ▲6.64 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▼0.01 | 35.13 ▼1.09 | 34.72 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.26 ▲0.03 | 610.65 ▼46.87 | 57.49 ▲9.76 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.01 | 98.52 ▼2.97 | 43.12 ▲1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_mmfilesi_random_post_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mmfilesi-random-post/mmfilesi-random-post.php:16
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Back-end.), #2 (Front-end)
- Plugin Name: Please specify the plugin name on the first line (
=== mmfilesi-random-post ===
)
mmfilesi-random-post/mmfilesi-random-post.php Passed 13 tests
"mmfilesi-random-post" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
18 characters long description:
select random post
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected226 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 64 | 29 | 168 |
CSS | 1 | 7 | 0 | 45 |
JavaScript | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/picture_default.png | 3.12KB | 2.50KB | ▼ 19.76% |
screenshot-2.png | 73.92KB | 23.28KB | ▼ 68.51% |
screenshot-1.png | 9.23KB | 5.06KB | ▼ 45.18% |