83% wpo365-msgraphmailer

Code Review | WPO365 | MICROSOFT 365 GRAPH MAILER

WordPress plugin WPO365 | MICROSOFT 365 GRAPH MAILER scored83%from 54 tests.

About plugin

  • Plugin page: wpo365-msgraphmailer
  • Plugin version: 2.23
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2022
  • Latest release: Nov 10, 2023
  • Number of updates: 57
  • Update frequency: every 11.3 days
  • Top authors: wpo365 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

4,000+ active /29,848 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
Installer ran successfully

Server metrics [RAM: ▲0.84MB] [CPU: ▲6.16ms] Passed 4 tests

A check of server-side resources used by WPO365 | MICROSOFT 365 GRAPH MAILER
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5942.54 ▲2.89
Dashboard /wp-admin4.22 ▲0.9253.88 ▲9.98
Posts /wp-admin/edit.php4.27 ▲0.9257.94 ▲12.20
Add New Post /wp-admin/post-new.php6.80 ▲0.9298.48 ▲1.72
Media Library /wp-admin/upload.php4.15 ▲0.9244.46 ▲10.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPO365 | MICROSOFT 365 GRAPH MAILER
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲5914.69 ▲0.391.71 ▲0.0040.13 ▼3.05
Dashboard /wp-admin2,211 ▲345.62 ▲0.0191.78 ▼8.7037.72 ▼0.73
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0239.44 ▼1.4636.05 ▼1.29
Add New Post /wp-admin/post-new.php1,548 ▲1924.94 ▲1.83611.37 ▲5.4759.53 ▼1.03
Media Library /wp-admin/upload.php1,419 ▲254.16 ▼0.0498.08 ▲0.7240.11 ▼0.49

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Crypt/Rijndael.php:64
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Crypt/RC4.php:54
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Crypt/Blowfish.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\et\\SSH2' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Net/SFTP.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Rijndael' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Crypt/AES.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Crypt/Twofish.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Crypt/DES.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Crypt/RC2.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\DES' not found in wp-content/plugins/wpo365-msgraphmailer/phpseclib/Crypt/TripleDES.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wpo365-msgraphmailer/wpo365-msgraphmailer.php 92% from 13 tests

"WPO365 | MICROSOFT 365 GRAPH MAILER" version 2.23's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 222 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected27,884 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PHP705,38913,90127,754
Markdown236066
JSON10029
CSS13024
JavaScript189211

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity80.85
▷ Minimum class complexity1.00
▷ Maximum class complexity633.00
Average method complexity6.60
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces14
Interfaces0
Traits0
Classes61
▷ Abstract classes11.64%
▷ Concrete classes6098.36%
▷ Final classes00.00%
Methods857
▷ Static methods19622.87%
▷ Public methods81695.22%
▷ Protected methods00.00%
▷ Private methods414.78%
Functions20
▷ Named functions210.00%
▷ Anonymous functions1890.00%
Constants210
▷ Global constants209.52%
▷ Class constants19090.48%
▷ Public constants190100.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