79% mail365

Code Review | Mail365 Integration

WordPress plugin Mail365 Integration scored79%from 54 tests.

About plugin

  • Plugin page: mail365
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Feb 22, 2019
  • Number of updates: 8
  • Update frequency: every 140.8 days
  • Top authors: aokhrimenko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /627 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.60ms] Passed 4 tests

An overview of server-side resources used by Mail365 Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.04 ▼2.92
Dashboard /wp-admin3.34 ▲0.0446.05 ▼1.14
Posts /wp-admin/edit.php3.45 ▲0.1044.50 ▼3.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.85 ▼6.37
Media Library /wp-admin/upload.php3.26 ▲0.0434.60 ▲0.46
Mail365 /wp-admin/tools.php?page=mail3653.2331.57

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
mail365_api_key
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mail365 Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.451.80 ▼0.0044.06 ▼5.40
Dashboard /wp-admin2,204 ▲135.84 ▲0.9598.84 ▼18.8838.63 ▼9.30
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0334.08 ▼1.6833.80 ▼3.68
Add New Post /wp-admin/post-new.php1,548 ▲3418.47 ▲0.96614.79 ▼43.5451.02 ▼4.67
Media Library /wp-admin/upload.php1,386 ▲44.16 ▼0.0596.61 ▼2.7343.79 ▲1.42
Mail365 /wp-admin/tools.php?page=mail3658092.0323.0837.42

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
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mail365/templates/Activation/activation.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mail365/templates/Import/import.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mail365/mail365.php:25

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: e mail, email, e-mail, mail365

mail365/mail365.php Passed 13 tests

This is the main PHP file of "Mail365 Integration" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Integrate the blog with Mail365

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin445 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP68417287
CSS111067
PO File1151656
JavaScript16035

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.33
▷ Minimum class complexity7.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1157.89%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin