83% wp-mlm

Code Review | WP MLM SOFTWARE PLUGIN

WordPress plugin WP MLM SOFTWARE PLUGIN scored 83% from 54 tests.

About plugin

  • Plugin page: wp-mlm
  • Plugin version: 3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 5.9.2
  • First release: Jul 14, 2018
  • Latest release: Jan 29, 2022
  • Number of updates: 61
  • Update frequency: every 21.2 days
  • Top authors: ioss (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active / 26,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼296.48ms] Passed 4 tests

This is a short check of server-side resources used by WP MLM SOFTWARE PLUGIN
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1151.93 ▲2.18
Dashboard /wp-admin3.53 ▲0.1233.00 ▲0.17
Posts /wp-admin/edit.php3.74 ▲0.1037.93 ▲2.88
Add New Post /wp-admin/post-new.php7.32 ▲0.3579.73 ▼1,186.78
Media Library /wp-admin/upload.php3.43 ▲0.1423.53 ▼1.48

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: 14 new tables, no new options
New tables
wp_wpmlm_user_balance_amount
wp_wpmlm_ewallet_history
wp_wpmlm_transaction_id
wp_wpmlm_tran_password
wp_wpmlm_country
wp_wpmlm_registration_packages
wp_wpmlm_fund_transfer_details
wp_wpmlm_level_commission
wp_wpmlm_users
wp_wpmlm_configuration
...

Browser metrics Passed 4 tests

Checking browser requirements for WP MLM SOFTWARE PLUGIN
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,089 ▲34517.84 ▲2.1127.85 ▲21.0016.31 ▲14.13
Dashboard /wp-admin2,934 ▲736.17 ▼0.01118.19 ▼14.33178.21 ▲16.09
Posts /wp-admin/edit.php2,711 ▲383.10 ▼0.1460.72 ▼3.07138.90 ▼1.98
Add New Post /wp-admin/post-new.php1,703 ▼5720.69 ▼1.24416.96 ▼3.80195.63 ▲41.41
Media Library /wp-admin/upload.php1,718 ▲205.70 ▲0.20123.32 ▼15.13203.33 ▲16.84

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
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, function 'wpmlm_deactivate' not found or invalid function name

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant WP_MLM_PLUGIN_DIR - assumed 'WP_MLM_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mlm/templates/wp-mlm-registration-page.php on line 3
    • > PHP Warning
      include(WP_MLM_PLUGIN_DIR/functions/php-validation.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mlm/templates/wp-mlm-registration-page.php on line 3
    • > PHP Warning
      include(): Failed opening 'WP_MLM_PLUGIN_DIR/functions/php-validation.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-mlm/templates/wp-mlm-registration-page.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpmlm_get_all_user_details_join() in wp-content/plugins/wp-mlm/templates/wp-mlm-genealogy-tree-loading.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mlm/wp-mlm-custom-functions.php:51
    • > PHP Notice
      Undefined index: user_id in wp-content/plugins/wp-mlm/templates/wp-mlm-genealogy-tree-loading.php on line 3
    • > PHP Warning
      include(WP_MLM_PLUGIN_DIR/functions/wp-mlm-db-functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mlm/templates/wp-mlm-registration-page.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-mlm/wp-mlm-constant.php:2
    • > PHP Warning
      Use of undefined constant WP_MLM_PLUGIN_DIR - assumed 'WP_MLM_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mlm/templates/wp-mlm-registration-page.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpmlm_admin_area() in wp-content/plugins/wp-mlm/wp-mlm-admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: A description for screenshot #8 is required in wp-mlm/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

wp-mlm/wpmlm-unilevel.php 92% from 13 tests

The main PHP file in "WP MLM SOFTWARE PLUGIN" ver. 3.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-mlm.php" instead of "wpmlm-unilevel.php")

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
No dangerous file extensions were detected18,327 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP311,5621657,350
JavaScript137505965,845
SVG1002,671
CSS8222472,461

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions181
▷ Named functions18099.45%
▷ Anonymous functions10.55%
Constants5
▷ Global constants5100.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
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/money-bag.png4.96KB2.92KB▼ 41.23%
images/avatar.png4.51KB2.84KB▼ 37.00%
uploads/default_logo.png3.84KB2.62KB▼ 31.88%
images/wallet.png4.09KB2.44KB▼ 40.48%
images/icon-01.png1.91KB1.02KB▼ 46.63%