74% wp-multisite-most-commented-posts-rss

Code Review | WP Multisite Most Commented Posts RSS

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

About plugin

  • Plugin page: wp-multisite-most...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 6, 2016
  • Latest release: Nov 22, 2017
  • Number of updates: 7
  • Update frequency: every 72.3 days
  • Top authors: munger41 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /581 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.86MB] [CPU: ▼54.36ms] Passed 4 tests

Analyzing server-side resources used by WP Multisite Most Commented Posts RSS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.334.94 ▼34.81
Dashboard /wp-admin2.15 ▼1.195.81 ▼52.90
Posts /wp-admin/edit.php2.16 ▼1.206.95 ▼37.47
Add New Post /wp-admin/post-new.php2.15 ▼3.735.68 ▼92.24
Media Library /wp-admin/upload.php2.15 ▼1.075.16 ▼28.39

Server storage [IO: ▲0.02MB] [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_theysaidso_widget
db_upgraded
widget_recent-comments
wp_mmcr_db_version
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WP Multisite Most Commented Posts RSS: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.74 ▲0.361.79 ▲0.0944.22 ▲5.69
Dashboard /wp-admin2,208 ▲205.85 ▲0.83107.25 ▲4.1442.14 ▼1.21
Posts /wp-admin/edit.php2,094 ▲22.05 ▲0.0641.35 ▲4.5635.78 ▲5.50
Add New Post /wp-admin/post-new.php1,530 ▲1123.10 ▼0.09683.62 ▼43.1854.43 ▼0.27
Media Library /wp-admin/upload.php1,384 ▼74.22 ▲0.05102.08 ▲4.4443.82 ▼5.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_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 wp_multisite_most_commented_rss handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • wp_mmcr_db_version
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-multisite-most-commented-posts-rss/wp-multisite-most-commented-rss.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-multisite-most-commented-posts-rss === )
Please take inspiration from this readme.txt

wp-multisite-most-commented-posts-rss/wp-multisite-most-commented-rss.php 92% from 13 tests

"WP Multisite Most Commented Posts RSS" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-multisite-most-commented-posts-rss.php" instead of "wp-multisite-most-commented-rss.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected275 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13510241
PO File14910530
CSS1004

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin