Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/latest-posts-multisite-widget/latest_posts_multisite.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; WP4U_LatestPostsWidget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼59.05ms] Passed 4 tests
An overview of server-side resources used by Latest Posts MultiSite Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 4.79 ▼39.15 |
Dashboard /wp-admin | 2.15 ▼1.15 | 5.65 ▼44.07 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 5.50 ▼48.20 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 6.07 ▼104.77 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 5.53 ▼33.48 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_wp4u_latestpostswidget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Latest Posts MultiSite Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.41 ▼0.18 | 1.74 ▼0.09 | 43.36 ▼0.78 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.06 | 88.21 ▲0.43 | 40.12 ▼0.33 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.05 | 34.18 ▼4.91 | 35.42 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,532 ▲166 | 23.05 ▲6.32 | 604.88 ▲82.79 | 64.73 ▲17.45 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▲0.01 | 97.17 ▼6.26 | 43.23 ▼4.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/latest-posts-multisite-widget/latest_posts_multisite.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; WP4U_LatestPostsWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_wp4u_latestpostswidget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/latest-posts-multisite-widget/latest_posts_multisite.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (Wordpress Admin Setting) image not found
latest-posts-multisite-widget/latest_posts_multisite.php 85% from 13 tests
Analyzing the main PHP file in "Latest Posts MultiSite Widget" version 1.0
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("latest-posts-multisite-widget.php" instead of "latest_posts_multisite.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 313 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,187 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 128 | 138 | 1,187 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 3 | 7.50% |
▷ Public methods | 9 | 22.50% |
▷ Protected methods | 30 | 75.00% |
▷ Private methods | 1 | 2.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 46 | |
▷ Global constants | 46 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 12.72KB | 8.25KB | ▼ 35.15% |