Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼306.16ms] Passed 4 tests
Server-side resources used by Advanced Random Posts Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 54.41 ▲5.55 |
Dashboard /wp-admin | 3.52 ▲0.11 | 37.45 ▼1.71 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 36.61 ▼6.92 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.01 | 92.88 ▼1,216.91 |
Media Library /wp-admin/upload.php | 3.39 ▲0.10 | 26.74 ▲0.91 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_arpw-widget |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Random Posts Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,772 ▲18 | 15.97 ▲0.04 | 6.95 ▲0.90 | 2.13 ▼0.07 |
Dashboard /wp-admin | 2,873 ▲12 | 6.01 ▼0.16 | 119.47 ▼24.51 | 155.24 ▼121.32 |
Posts /wp-admin/edit.php | 2,689 ▼5 | 3.25 ▲0.02 | 64.56 ▼0.58 | 141.10 ▼9.11 |
Add New Post /wp-admin/post-new.php | 1,754 ▲93 | 20.95 ▲4.89 | 432.69 ▲10.63 | 160.16 ▼0.95 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.56 ▲0.12 | 145.91 ▲7.75 | 187.55 ▼1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_arpw-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-random-posts-widget/includes/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-random-posts-widget/includes/functions.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-random-posts-widget/includes/shortcode.php:23
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
advanced-random-posts-widget/arpw.php 92% from 13 tests
Analyzing the main PHP file in "Advanced Random Posts Widget" version 2.2.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-random-posts-widget.php" instead of "arpw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected789 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 216 | 263 | 628 |
CSS | 2 | 21 | 0 | 90 |
JavaScript | 1 | 21 | 22 | 71 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.39 |
▷ 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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
Functions | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin