Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.07ms] Passed 4 tests
Server-side resources used by Vi Random Post Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.08 ▼5.05 |
Dashboard /wp-admin | 3.39 ▲0.04 | 57.46 ▼11.78 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 57.96 ▲9.28 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.08 | 89.87 ▼11.30 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 38.81 ▼0.13 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_virp-widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Vi Random Post Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.33 ▲0.19 | 1.80 ▲0.10 | 43.85 ▼1.15 |
Dashboard /wp-admin | 2,198 ▲24 | 5.60 ▲0.07 | 87.14 ▼14.17 | 42.74 ▲0.69 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.06 | 35.55 ▲0.19 | 32.14 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.46 ▲0.39 | 696.95 ▼13.48 | 51.36 ▼8.62 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.20 ▼0.12 | 99.09 ▼6.74 | 44.54 ▼4.53 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_virp-widget
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/vi-random-posts-widget/includes/form.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vi-random-posts-widget/includes/shortcode.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vi-random-posts-widget/includes/widget.php:4
- > 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 96% from 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
7 plugin tags: custom post widget, post widget, random post widget, latest post widget, random post...
vi-random-posts-widget/virp.php 92% from 13 tests
The primary PHP file in "Vi Random Post Widget" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("vi-random-posts-widget.php" instead of "virp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,782 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 2 | 12 | 1,696 |
PHP | 6 | 156 | 135 | 566 |
SVG | 1 | 0 | 0 | 520 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected