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.03MB] [CPU: ▼143.28ms] Passed 4 tests
Analyzing server-side resources used by PB MailCrypt - AntiSpam Email Encryption
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.34 ▲12.19 |
Dashboard /wp-admin | 3.08 ▲0.03 | 44.88 ▲1.27 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 34.39 ▼7.36 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 87.40 ▼574.51 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.59 ▲7.47 |
MailCrypt /wp-admin/options-general.php?page=pb-mailcrypt | 2.97 | 30.69 |
Server storage [IO: ▲0.12MB] [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: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
PB MailCrypt - AntiSpam Email Encryption: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲232 | 16.27 ▲0.59 | 14.82 ▲4.20 | 47.00 ▼7.34 |
Dashboard /wp-admin | 2,997 ▲63 | 5.89 ▼0.14 | 138.27 ▲0.05 | 122.93 ▲19.40 |
Posts /wp-admin/edit.php | 2,766 ▲27 | 2.71 ▼0.01 | 65.99 ▲0.47 | 97.42 ▲4.98 |
Add New Post /wp-admin/post-new.php | 1,633 ▲135 | 21.95 ▲3.15 | 295.08 ▼78.11 | 109.16 ▼4.36 |
Media Library /wp-admin/upload.php | 1,834 ▲24 | 5.05 ▲0.03 | 163.01 ▲7.01 | 129.43 ▲11.88 |
MailCrypt /wp-admin/options-general.php?page=pb-mailcrypt | 1,239 | 2.10 | 55.05 | 90.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=pb-mailcrypt
- > Notice in wp-content/plugins/pb-mailcrypt-antispam-email-encryption/inc/pbSettingsFramework.php+179
Undefined index: prepend
- > GET request to /wp-admin/options-general.php?page=pb-mailcrypt
- > Notice in wp-content/plugins/pb-mailcrypt-antispam-email-encryption/inc/pbSettingsFramework.php+197
Undefined index: append
- > GET request to /wp-admin/options-general.php?page=pb-mailcrypt
- > Warning in wp-content/plugins/pb-mailcrypt-antispam-email-encryption/inc/settings.php+198
constant(): Couldn't find constant pbsfi_file
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=pb-mailcrypt
- > Network (severe)
wp-content/plugins/img/primusnote.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
pb-mailcrypt-antispam-email-encryption/pb-mailcrypt.php 92% from 13 tests
"PB MailCrypt - AntiSpam Email Encryption" version 3.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pb-mailcrypt-antispam-email-encryption.php" instead of "pb-mailcrypt.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,009 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 113 | 123 | 468 |
Sass | 1 | 38 | 1 | 218 |
CSS | 1 | 2 | 1 | 178 |
PO File | 1 | 35 | 54 | 121 |
JavaScript | 1 | 14 | 31 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 19 | 95.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/code.png | 26.40KB | 4.65KB | ▼ 82.39% |
img/primusnote.png | 2.47KB | 1.27KB | ▼ 48.68% |
img/warning.png | 20.55KB | 2.87KB | ▼ 86.03% |
img/icon.png | 5.89KB | 2.87KB | ▼ 51.34% |
img/mailcrypt.png | 5.89KB | 2.87KB | ▼ 51.34% |