84% wds-multisite-aggregate

Code Review | WDS Multisite Aggregate

WordPress plugin WDS Multisite Aggregate scored84%from 54 tests.

About plugin

  • Plugin page: wds-multisite-agg...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Dec 10, 2016
  • Number of updates: 10
  • Update frequency: every 77.2 days
  • Top authors: jtsternberg (60%)tw2113 (50%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,383 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.82ms] Passed 4 tests

A check of server-side resources used by WDS Multisite Aggregate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2040.12 ▼10.07
Dashboard /wp-admin3.48 ▲0.1857.93 ▲9.84
Posts /wp-admin/edit.php3.59 ▲0.2453.39 ▲8.50
Add New Post /wp-admin/post-new.php6.06 ▲0.1892.58 ▼7.74
Media Library /wp-admin/upload.php3.40 ▲0.1737.90 ▲2.03

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WDS Multisite Aggregate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.31 ▼1.074.12 ▲2.0041.71 ▲2.95
Dashboard /wp-admin2,203 ▲126.02 ▲0.9899.72 ▼6.4738.61 ▼5.08
Posts /wp-admin/edit.php2,089 ▲182.05 ▲0.0539.66 ▲2.2834.83 ▲1.26
Add New Post /wp-admin/post-new.php1,542 ▲2818.42 ▲0.93628.02 ▼95.0850.24 ▼16.07
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.0496.45 ▼3.5644.98 ▲2.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wds-multisite-aggregate/includes/admin-page.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wds-multisite-aggregate/includes/WDS_Multisite_Aggregate_CLI.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wds-multisite-aggregate/includes/WDS_Multisite_Aggregate_Options.php:47

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: wordpressmu

wds-multisite-aggregate/wds-multisite-aggregate.php 92% from 13 tests

The main PHP script in "WDS Multisite Aggregate" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,027 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8206159927
Markdown115052
PO File1191848

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity29.14
▷ Minimum class complexity1.00
▷ Maximum class complexity109.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods55
▷ Static methods00.00%
▷ Public methods4480.00%
▷ Protected methods1120.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin