10% matchchat

Code Review | Matchchat

WordPress plugin Matchchat scored10%from 54 tests.

About plugin

  • Plugin page: matchchat
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 3, 2013
  • Latest release: Mar 17, 2017
  • Number of updates: 57
  • Update frequency: every 25.3 days
  • Top authors: nfrmn (54.39%)bouk (26.32%)dlavery62 (22.81%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,910 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/matchchat/matchchat.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; Native_Trends has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼60.89ms] Passed 4 tests

Analyzing server-side resources used by Matchchat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.395.06 ▼37.64
Dashboard /wp-admin2.10 ▼1.216.66 ▼48.18
Posts /wp-admin/edit.php2.10 ▼1.265.26 ▼53.62
Add New Post /wp-admin/post-new.php2.10 ▼3.796.23 ▼104.13
Media Library /wp-admin/upload.php2.10 ▼1.136.66 ▼31.40
Moderate Comments /wp-admin/admin.php?page=mc-plugin-moderate2.105.62
Settings /wp-admin/admin.php?page=mc-plugin-settings2.105.74

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_native_trends
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Matchchat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8113.73 ▼0.321.63 ▼0.0945.54 ▲1.58
Dashboard /wp-admin2,248 ▲485.85 ▼0.00101.27 ▼3.8542.18 ▼2.89
Posts /wp-admin/edit.php2,128 ▲282.03 ▼0.0337.18 ▼1.8530.31 ▼9.53
Add New Post /wp-admin/post-new.php1,567 ▲2723.30 ▲0.22627.65 ▼19.0157.99 ▼2.04
Media Library /wp-admin/upload.php1,430 ▲334.23 ▼0.01106.60 ▲0.9845.48 ▼29.75
Moderate Comments /wp-admin/admin.php?page=mc-plugin-moderate1,8313.9283.9181.61
Settings /wp-admin/admin.php?page=mc-plugin-settings9152.0626.6925.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/matchchat/matchchat.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; Native_Trends has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_native_trends
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mc-plugin-settings
    • > Deprecated in wp-content/plugins/matchchat/matchchat.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; Native_Trends has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mc-plugin-settings
    • > Deprecated in wp-content/plugins/matchchat/matchchat.php+63
    Function create_function() is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mc-plugin-settings
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Native_Trends is deprecated since version 4.3.0! Use __construct() instead.

SRP 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/matchchat/matchchat.php
    • > /wp-content/plugins/matchchat/nocomments.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/matchchat/commentsystem.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=mc-plugin-moderate
    • > Security (severe) in unknown
    https://panel.matchchat.co.uk/ 352 Blocked autofocusing on a element in a cross-origin subframe.
    • > GET request to /wp-admin/admin.php?page=mc-plugin-moderate
    • > Security (severe) in unknown
    https://panel.matchchat.co.uk/dummy.html 11 Blocked autofocusing on a element in a cross-origin subframe.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

matchchat/matchchat.php Passed 13 tests

The primary PHP file in "Matchchat" version 2.3.2 is used by WordPress to initiate all plugin functionality
35 characters long description:
Engage your fans like never before.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected258 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43817258

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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