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
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼156.06ms] Passed 4 tests
Analyzing server-side resources used by PressMailer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.19 ▲0.47 | 36.22 ▲14.00 |
Dashboard /wp-admin | 3.56 ▲0.50 | 45.89 ▼0.86 |
Posts /wp-admin/edit.php | 3.61 ▲0.50 | 47.02 ▲4.58 |
Add New Post /wp-admin/post-new.php | 4.55 ▼0.89 | 33.60 ▼627.16 |
Media Library /wp-admin/upload.php | 3.44 ▲0.44 | 32.71 ▼0.81 |
Layout /wp-admin/admin.php?page=prema_default_layout_options | 3.93 | 47.92 |
All Emails /wp-admin/admin.php?page=pressmailer | 3.55 | 36.92 |
Settings /wp-admin/admin.php?page=pressmailer-settings | 3.43 | 31.54 |
Server storage [IO: ▲3.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 641 new files
Database: no new tables, 2 new options
New WordPress options |
---|
prema_default_from_name |
prema_default_from_address |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PressMailer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,901 ▲305 | 16.35 ▲0.70 | 11.30 ▲1.89 | 49.81 ▲1.91 |
Dashboard /wp-admin | 3,057 ▲126 | 6.21 ▲0.30 | 142.12 ▲2.83 | 112.05 ▼3.42 |
Posts /wp-admin/edit.php | 2,801 ▲65 | 2.94 ▲0.25 | 65.57 ▼3.91 | 89.54 ▼5.71 |
Add New Post /wp-admin/post-new.php | 1,722 ▲50 | 20.39 ▲1.34 | 343.29 ▼17.50 | 122.75 ▲7.06 |
Media Library /wp-admin/upload.php | 1,872 ▲62 | 5.26 ▲0.27 | 122.15 ▼17.40 | 115.75 ▼4.95 |
Layout /wp-admin/admin.php?page=prema_default_layout_options | 6,642 | 10.34 | 277.59 | 177.94 |
All Emails /wp-admin/admin.php?page=pressmailer | 1,493 | 2.37 | 61.32 | 72.18 |
Settings /wp-admin/admin.php?page=pressmailer-settings | 1,100 | 2.34 | 56.21 | 80.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 options in the database
- prema_default_from_address
- prema_default_from_name
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pressmailer/resources/views/admin/home.php
- > /wp-content/plugins/pressmailer/resources/views/admin/metaboxwithvariablesbase.php
- 156× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/pressmailer/vendor/cmb2/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'PressMailer\\Email\\Capabilities\\Variables\\General\\StaticEmailVariable' not found in wp-content/plugins/pressmailer/src/Email/Capabilities/Variables/General/AdminEmailVariable.php:8
- > PHP Fatal error
Uncaught Error: Class 'PressMailer\\Email\\Capabilities\\AbstractCapabilityWithUrlAndLinkVariables' not found in wp-content/plugins/pressmailer/src/Email/Capabilities/PasswordResetCapability.php:8
- > PHP Fatal error
Uncaught Error: Class 'PressMailer\\Admin\\EmailEditor\\EmailVariable' not found in wp-content/plugins/pressmailer/src/Email/Capabilities/Variables/EmailChangeRequest/EmailChangeConfirmationLinkVariable.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/pressmailer/vendor/php-di/invoker/src/ParameterResolver/ResolverChain.php:12
- > PHP Fatal error
Uncaught Error: Class 'PressMailer\\Admin\\EmailEditor\\EmailVariable' not found in wp-content/plugins/pressmailer/src/Email/Capabilities/Variables/EmailChangeRequest/NewEmailVariable.php:9
- > PHP Fatal error
Uncaught Error: Class 'PressMailer\\Email\\AbstractEmail' not found in wp-content/plugins/pressmailer/src/Email/NewUserEmail.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Invoker\\InvokerInterface' not found in wp-content/plugins/pressmailer/vendor/php-di/invoker/src/Invoker.php:19
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/pressmailer/vendor/php-di/php-di/src/Definition/Resolver/DecoratorResolver.php:18
- > PHP Fatal error
Uncaught Error: Class 'DI\\Definition\\Exception\\InvalidDefinition' not found in wp-content/plugins/pressmailer/vendor/php-di/php-di/src/Definition/Exception/InvalidAnnotation.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: gutenberg, email, html mail, notification, email design...
pressmailer/pressmailer.php 92% from 13 tests
"PressMailer" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Git Repository: Please remove the Git repository from this plugin
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin64,812 lines of code in 471 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 260 | 4,756 | 9,898 | 17,973 |
JSON | 9 | 0 | 0 | 4,810 |
CSS | 14 | 251 | 1,186 | 4,551 |
Markdown | 18 | 679 | 0 | 1,690 |
JavaScript | 22 | 398 | 624 | 1,687 |
Sass | 19 | 306 | 29 | 1,414 |
YAML | 5 | 13 | 1 | 287 |
XML | 3 | 12 | 6 | 59 |
SVG | 1 | 0 | 1 | 18 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 209)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 10.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 302.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 209.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 21 | |
Traits | 1 | |
Classes | 228 | |
▷ Abstract classes | 19 | 8.33% |
▷ Concrete classes | 209 | 91.67% |
▷ Final classes | 2 | 0.96% |
Methods | 1,314 | |
▷ Static methods | 141 | 10.73% |
▷ Public methods | 1,108 | 84.32% |
▷ Protected methods | 132 | 10.05% |
▷ Private methods | 74 | 5.63% |
Functions | 66 | |
▷ Named functions | 50 | 75.76% |
▷ Anonymous functions | 16 | 24.24% |
Constants | 100 | |
▷ Global constants | 11 | 11.00% |
▷ Class constants | 89 | 89.00% |
▷ Public constants | 87 | 97.75% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
18 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/mustardBees/cmb-field-select2/screenshot-4.png | 3.68KB | 3.79KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |