10% msls-gouping

Code Review | MSLS Grouping

WordPress plugin MSLS Grouping scored10%from 54 tests.

About plugin

  • Plugin page: msls-gouping
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2017
  • Latest release: Mar 28, 2017
  • Number of updates: 14
  • Update frequency: every 3.1 days
  • Top authors: Asumaru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /501 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php+798
    Undefined index: asm_MSLS_Grouping_Class

Server metrics [RAM: ▼1.74MB] [CPU: ▼54.05ms] Passed 4 tests

Analyzing server-side resources used by MSLS Grouping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.26 ▼1.205.43 ▼32.17
Dashboard /wp-admin2.28 ▼1.067.31 ▼53.56
Posts /wp-admin/edit.php2.28 ▼1.076.74 ▼43.12
Add New Post /wp-admin/post-new.php2.28 ▼3.618.93 ▼87.35
Media Library /wp-admin/upload.php2.28 ▼0.955.78 ▼26.65

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_samelangsites
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for MSLS Grouping
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.441.77 ▲0.2142.30 ▲3.20
Dashboard /wp-admin2,249 ▲605.88 ▲0.84104.70 ▼15.2544.37 ▲1.04
Posts /wp-admin/edit.php2,095 ▲32.13 ▲0.0942.64 ▲0.3531.58 ▼3.61
Add New Post /wp-admin/post-new.php1,520 ▼917.64 ▼0.56634.69 ▲6.0968.35 ▲12.84
Media Library /wp-admin/upload.php1,428 ▲404.22 ▲0.02100.85 ▲1.3544.80 ▼0.15

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
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php+798
    Undefined index: asm_MSLS_Grouping_Class
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_samelangsites

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 take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php:108
    • > PHP Notice
      Undefined index: asm_MSLS_Grouping_Class in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php on line 798
    • > PHP Notice
      Undefined index: asm_MSLS_Grouping_Class in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php on line 798
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php:108
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/msls-gouping/inc/dictionary.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (e.g. Sites List.), #2 (Multisite Language Switcher Options.), #3 (Set "group_key".), #4 (Widget "SameLangSites".), #5 (Shortcode "SameLangSites".), #6 (e.g. English Site.), #7 (e.g. Japanese Site.), #8 (Language flags in Admin-Bar.)
The official readme.txt is a good inspiration

msls-gouping/asm-MSLS-Grouping.php 85% from 13 tests

This is the main PHP file of "MSLS Grouping" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("msls-gouping.php" instead of "asm-MSLS-Grouping.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected707 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP397287589
PO File23030118

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity49.50
▷ Minimum class complexity5.00
▷ Maximum class complexity94.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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