Benchmarks
Plugin footprint 40% 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/wp-multisite-popular-posts/wp-multisite-popular-posts.php+326
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼61.02ms] Passed 4 tests
An overview of server-side resources used by WP Multisite Most Commented Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.10 ▼41.40 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.05 ▼59.84 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.16 ▼43.19 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.19 ▼99.63 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.41 ▼31.84 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints 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 |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_wp_multisite_popular_posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Multisite Most Commented Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.25 ▼0.12 | 1.76 ▼0.20 | 46.30 ▲1.59 |
Dashboard /wp-admin | 2,194 ▲17 | 5.53 ▼0.08 | 85.22 ▼8.75 | 39.55 ▼7.23 |
Posts /wp-admin/edit.php | 2,099 ▼4 | 2.00 ▲0.01 | 35.83 ▼4.73 | 34.14 ▼7.99 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 23.23 ▲4.97 | 640.71 ▼43.21 | 59.77 ▼5.72 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.30 ▲0.12 | 102.32 ▲1.82 | 42.74 ▲0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-multisite-popular-posts/wp-multisite-popular-posts.php+326
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_wp_multisite_popular_posts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× 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/wp-multisite-popular-posts/wp-multisite-popular-posts.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-multisite-popular-posts ===
)
wp-multisite-popular-posts/wp-multisite-popular-posts.php Passed 13 tests
The entry point to "WP Multisite Most Commented Posts" version 1.4 is a PHP file that has certain tags in its header comment area
73 characters long description:
Show most commented posts across multisite install : Widget & [SHORTCODE]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected270 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 39 | 236 |
PO File | 1 | 49 | 105 | 30 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin