84% multisite-list-widget

Code Review | Multisite-List-Widget

WordPress plugin Multisite-List-Widget scored 84% from 54 tests.

About plugin

  • Plugin page: multisite-list-wi...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2
  • WordPress version: 5.9.2
  • First release: May 4, 2015
  • Latest release: May 4, 2015
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: yyano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 953 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼294.02ms] Passed 4 tests

Server-side resources used by Multisite-List-Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0367.75 ▲4.73
Dashboard /wp-admin3.43 ▲0.0236.49 ▲1.37
Posts /wp-admin/edit.php3.67 ▲0.0245.94 ▼4.15
Add New Post /wp-admin/post-new.php6.90 ▼0.07104.40 ▼1,174.65
Media Library /wp-admin/upload.php3.32 ▲0.0227.55 ▲1.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_multisite_list_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Multisite-List-Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲4116.14 ▲0.576.11 ▼0.382.48 ▲0.13
Dashboard /wp-admin2,895 ▲376.14 ▼0.07124.69 ▼13.68154.91 ▼5.80
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0163.64 ▼0.97141.53 ▼5.00
Add New Post /wp-admin/post-new.php1,661 ▼3517.36 ▼3.82441.56 ▼12.90155.83 ▼1.76
Media Library /wp-admin/upload.php1,698 ▼35.48 ▼0.05140.61 ▼0.92183.35 ▲1.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_multisite_list_widget

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
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multisite-list-widget/multisite-list-widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: multisite, link, widget

multisite-list-widget/multisite-list-widget.php 92% from 13 tests

The main file in "Multisite-List-Widget" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181262

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected