Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/simplicy-random-post/func/function.php+103
Methods with the same name as their class will not be constructors in a future version of PHP; WARP__widget has a deprecated constructor
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.45ms] Passed 4 tests
An overview of server-side resources used by Simplicy Random Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.36 ▼39.88 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.14 ▼43.32 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.12 ▼38.16 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.70 ▼80.42 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.67 ▼29.67 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_sp-random-post |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Simplicy Random Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲67 | 13.30 ▼1.36 | 1.99 ▼0.13 | 44.44 ▼2.84 |
Dashboard /wp-admin | 2,213 ▲22 | 5.88 ▼0.01 | 104.23 ▼8.56 | 37.74 ▼6.68 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.02 ▲0.01 | 39.07 ▲1.66 | 34.43 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,523 ▼5 | 23.15 ▲0.09 | 601.67 ▼64.23 | 57.39 ▲0.13 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.20 ▼0.05 | 96.77 ▼7.23 | 44.40 ▲0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the simplicy_random_post handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_sp-random-post
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplicy-random-post/func/function.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplicy-random-post/func/function.php:27
- > 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 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Example of display in the panel administrator of your blog.
), #2 (Example of display Widget of your blog.
) - Donate link: Invalid URI found ("")
simplicy-random-post/sp-random-post.php 92% from 13 tests
The entry point to "Simplicy Random Post" version 1.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("simplicy-random-post.php" instead of "sp-random-post.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
There were no executable files found in this plugin465 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 38 | 224 |
PO File | 2 | 36 | 34 | 104 |
JavaScript | 1 | 2 | 4 | 87 |
CSS | 2 | 11 | 11 | 50 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/reload_icon.png | 1.00KB | 0.93KB | ▼ 7.21% |