94% mailster-repermission

Code Review | Mailster RePermission

WordPress plugin Mailster RePermission scored 94% from 54 tests.

About plugin

  • Plugin page: mailster-repermis...
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 5.9.2
  • First release: Apr 4, 2018
  • Latest release: Feb 2, 2022
  • Number of updates: 36
  • Update frequency: every 39.1 days
  • Top authors: everpress (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,080 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.11ms] Passed 4 tests

An overview of server-side resources used by Mailster RePermission
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.89 ▲5.59
Dashboard /wp-admin3.41 ▲0.0133.00 ▲0.32
Posts /wp-admin/edit.php3.65 ▲0.0137.25 ▲2.31
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.29 ▼1,194.14
Media Library /wp-admin/upload.php3.30 ▲0.0027.10 ▲3.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mailster RePermission
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲2115.93 ▲0.375.81 ▼0.892.41 ▼0.13
Dashboard /wp-admin2,904 ▲466.15 ▼0.07115.71 ▼20.85158.79 ▼1.86
Posts /wp-admin/edit.php2,700 ▲63.24 ▲0.0164.43 ▼0.61139.63 ▼4.48
Add New Post /wp-admin/post-new.php1,674 ▼1620.60 ▼0.27419.10 ▼47.54159.53 ▲2.10
Media Library /wp-admin/upload.php1,710 ▲155.51 ▲0.01154.35 ▲9.63186.55 ▲0.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-repermission/classes/repermission.class.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mailster-repermission/views/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: permission, repermission, mailster, gdpr

mailster-repermission/mailster-repermission.php Passed 13 tests

"Mailster RePermission" version 1.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Helps to setup your Re-Permission Campaign for GDPR compliance in Mailster.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected108 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35110108

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin