72% mssg-me-widget

Code Review | MSSG.ME Widget

WordPress plugin MSSG.ME Widget scored 72% from 54 tests.

About plugin

  • Plugin page: mssg-me-widget
  • Plugin version: 1.00
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2019
  • Latest release: Feb 9, 2019
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: mssgme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 648 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.02MB] [CPU: ▼1.46ms] Passed 4 tests

Analyzing server-side resources used by MSSG.ME Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0254.32 ▲13.21
Dashboard /wp-admin3.32 ▲0.0246.69 ▼0.86
Posts /wp-admin/edit.php3.37 ▲0.0248.05 ▼2.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0298.58 ▼1.68
Media Library /wp-admin/upload.php3.24 ▲0.0234.89 ▼1.14

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for MSSG.ME Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.215.63 ▲3.9760.61 ▲17.90
Dashboard /wp-admin2,204 ▲135.78 ▲0.85102.84 ▲0.7942.69 ▲1.65
Posts /wp-admin/edit.php2,090 ▲11.98 ▼0.0837.34 ▼2.8935.13 ▼2.75
Add New Post /wp-admin/post-new.php1,540 ▲723.17 ▼0.03670.32 ▼21.0751.38 ▼4.95
Media Library /wp-admin/upload.php1,389 ▲14.25 ▲0.0194.17 ▼22.0140.96 ▼7.04
MSSG.ME Widget /wp-admin/mssgme_widget.php260.440.1313.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mssg-me-widget/mssgme.php
  • 3× 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/mssg-me-widget/includes/mssgme_widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mssg-me-widget/includes/embed.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mssg-me-widget/includes/core.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/mssgme_widget.php
    • > Network (severe)
    wp-admin/mssgme_widget.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: mssgme, sales, chat plugin, feedback, marketing...

mssg-me-widget/mssgme.php 92% from 13 tests

"MSSG.ME Widget" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mssg-me-widget.php" instead of "mssgme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected109 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53025109

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected