10% wp-multisite-popular-posts

Code Review | WP Multisite Most Commented Posts

WordPress plugin WP Multisite Most Commented Posts scored10%from 54 tests.

About plugin

  • Plugin page: wp-multisite-popu...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Mar 13, 2015
  • Latest release: Oct 8, 2016
  • Number of updates: 17
  • Update frequency: every 48.2 days
  • Top authors: munger41 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,932 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.10 ▼41.40
Dashboard /wp-admin2.05 ▼1.306.05 ▼59.84
Posts /wp-admin/edit.php2.05 ▼1.316.16 ▼43.19
Add New Post /wp-admin/post-new.php2.05 ▼3.845.19 ▼99.63
Media Library /wp-admin/upload.php2.05 ▼1.185.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.25 ▼0.121.76 ▼0.2046.30 ▲1.59
Dashboard /wp-admin2,194 ▲175.53 ▼0.0885.22 ▼8.7539.55 ▼7.23
Posts /wp-admin/edit.php2,099 ▼42.00 ▲0.0135.83 ▼4.7334.14 ▼7.99
Add New Post /wp-admin/post-new.php1,530 ▼723.23 ▲4.97640.71 ▼43.2159.77 ▼5.72
Media Library /wp-admin/upload.php1,402 ▼14.30 ▲0.12102.32 ▲1.8242.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

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 === )
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP16339236
PO File14910530
CSS1004

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 code0.21
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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