Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/microkids-related-posts/microkids-related-posts-widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Related_Posts has a deprecated constructor
Server metrics [RAM: ▼1.70MB] [CPU: ▼48.62ms] Passed 4 tests
This is a short check of server-side resources used by Related Posts for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.00 ▼30.40 |
Dashboard /wp-admin | 2.31 ▼0.99 | 10.61 ▼42.28 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 10.47 ▼35.58 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.58 | 10.87 ▼86.22 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 11.46 ▼27.50 |
Related Posts /wp-admin/options-general.php?page=microkids-related-posts/microkids-related-posts.php | 2.31 | 11.11 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_post_relationships |
New WordPress options |
---|
widget_theysaidso_widget |
MRP_current_db_version |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
MRP_options |
widget_related_posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Related Posts for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.26 ▲0.12 | 1.85 ▲0.17 | 46.57 ▲0.90 |
Dashboard /wp-admin | 2,227 ▲20 | 4.88 ▼0.06 | 108.27 ▼0.02 | 42.99 ▼0.91 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▼0.02 | 33.84 ▼6.91 | 35.10 ▲0.45 |
Add New Post /wp-admin/post-new.php | 6,305 ▲4,774 | 26.06 ▲3.04 | 946.48 ▲285.06 | 67.73 ▲10.08 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.24 ▲0.00 | 101.86 ▼6.42 | 44.15 ▼4.71 |
Related Posts /wp-admin/options-general.php?page=microkids-related-posts/microkids-related-posts.php | 1,214 | 1.72 | 25.67 | 36.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WP_Widget_Related_Posts is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure failed, leaving 1 table in the database
- wp_post_relationships
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- widget_related_posts
- widget_theysaidso_widget
- MRP_current_db_version
- theysaidso_admin_options
- MRP_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=microkids-related-posts/microkids-related-posts.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WP_Widget_Related_Posts is deprecated since version 4.3.0! Use __construct() instead.
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 fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/microkids-related-posts/microkids-related-posts-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/microkids-related-posts/microkids-related-posts.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (The plugin will appear in the write/edit post screen.), #2 (The Related Posts options page allows you to completely customize the way related posts are displayed), #3 (The Related Posts widget lets you automatically display related posts in your dynamic sidebar)
microkids-related-posts/microkids-related-posts.php Passed 13 tests
The main file in "Related Posts for WordPress" v. 4.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Display a set of manually selected related items with your posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,864 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 60 | 226 | 909 |
PO File | 5 | 250 | 265 | 576 |
CSS | 2 | 1 | 0 | 284 |
JavaScript | 1 | 10 | 2 | 95 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 87.50KB | 35.24KB | ▼ 59.72% |
images/link.png | 0.44KB | 0.29KB | ▼ 34.38% |
screenshot-3.png | 27.19KB | 11.38KB | ▼ 58.15% |
screenshot-1.png | 37.89KB | 15.69KB | ▼ 58.60% |