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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.89 ▲5.59 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.00 ▲0.32 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.25 ▲2.31 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 95.29 ▼1,194.14 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 27.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,775 ▲21 | 15.93 ▲0.37 | 5.81 ▼0.89 | 2.41 ▼0.13 |
Dashboard /wp-admin | 2,904 ▲46 | 6.15 ▼0.07 | 115.71 ▼20.85 | 158.79 ▼1.86 |
Posts /wp-admin/edit.php | 2,700 ▲6 | 3.24 ▲0.01 | 64.43 ▼0.61 | 139.63 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,674 ▼16 | 20.60 ▼0.27 | 419.10 ▼47.54 | 159.53 ▲2.10 |
Media Library /wp-admin/upload.php | 1,710 ▲15 | 5.51 ▲0.01 | 154.35 ▲9.63 | 186.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 51 | 10 | 108 |
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 code | 0.15 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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