73% message-mate

Code Review | Message Mate

WordPress plugin Message Mate scored73%from 54 tests.

About plugin

  • Plugin page: message-mate
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2016
  • Latest release: Feb 9, 2023
  • Number of updates: 28
  • Update frequency: every 86.0 days
  • Top authors: nivcaner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼11.01ms] Passed 4 tests

An overview of server-side resources used by Message Mate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.42 ▼12.60
Dashboard /wp-admin3.38 ▲0.0846.62 ▼5.49
Posts /wp-admin/edit.php3.49 ▲0.1449.40 ▼2.02
Add New Post /wp-admin/post-new.php5.98 ▲0.0981.97 ▼23.93
Media Library /wp-admin/upload.php3.30 ▲0.0740.80 ▲4.17
Message Mate /wp-admin/options-general.php?page=message-mate3.2829.93

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Message Mate
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲11913.44 ▼0.838.20 ▲6.2737.61 ▼5.65
Dashboard /wp-admin2,206 ▲295.64 ▲0.0790.47 ▲3.2840.01 ▼0.03
Posts /wp-admin/edit.php2,108 ▲52.01 ▼0.0338.71 ▼11.3337.23 ▼2.14
Add New Post /wp-admin/post-new.php1,533 ▲722.92 ▼0.33683.28 ▼84.3165.47 ▲0.40
Media Library /wp-admin/upload.php1,402 ▼14.26 ▲0.1094.70 ▼12.4442.96 ▼1.00
Message Mate /wp-admin/options-general.php?page=message-mate8422.0224.1743.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% 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)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=message-mate
    • > Notice in wp-content/plugins/message-mate/admin/partials/message-mate-admin-display.php+29
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/message-mate/public/partials/message-mate-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/message-mate/admin/partials/message-mate-admin-display.php:19

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 97% 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 need to be fixed:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

message-mate/message-mate.php Passed 13 tests

The main PHP file in "Message Mate" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Message Mate lets customers text you from their phone or computer. Reply privately via email, text or dashboard.

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
Success! There were no dangerous files found in this plugin372 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12199560330
CSS215829
JavaScript275513

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2578.12%
▷ Protected methods00.00%
▷ Private methods721.88%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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