83% sendmemsg

Code Review | sendMeMsg

WordPress plugin sendMeMsg scored83%from 54 tests.

About plugin

  • Plugin page: sendmemsg
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Nov 24, 2020
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: ofeknakar01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.53ms] Passed 4 tests

Server-side resources used by sendMeMsg
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.01 ▼0.57
Dashboard /wp-admin3.32 ▲0.0146.97 ▼5.48
Posts /wp-admin/edit.php3.37 ▲0.0153.44 ▼0.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.70 ▼19.09
Media Library /wp-admin/upload.php3.24 ▲0.0137.76 ▲0.60

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for sendMeMsg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.48 ▲0.111.62 ▼0.2137.71 ▼7.87
Dashboard /wp-admin2,218 ▲155.80 ▲0.92115.40 ▲0.4042.41 ▼1.49
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0136.65 ▼5.6429.67 ▼8.38
Add New Post /wp-admin/post-new.php1,526 ▼2117.67 ▼5.43660.55 ▼13.7153.07 ▼4.19
Media Library /wp-admin/upload.php1,400 ▲64.22 ▼0.0697.37 ▼9.3642.16 ▼6.77

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_sendmemsg_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sendmemsg/includes/sendmemsg-class.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendmemsg/includes/sendmemsg-scripts.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: button, whatsapp, interactive, direct message

sendmemsg/sendMeMsg.php 77% from 13 tests

The main PHP file in "sendMeMsg" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sendmemsg.php" instead of "sendMeMsg.php")
  • Description: The description should be shorter than 140 characters (currently 173 characters long)

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 plugin78 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3284863
CSS12015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin