Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼142.01ms] Passed 4 tests
Server-side resources used by LH Email
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 38.79 ▲7.08 |
Dashboard /wp-admin | 3.15 ▲0.09 | 54.88 ▼0.37 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 51.10 ▼2.20 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.16 | 99.76 ▼568.93 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 38.93 ▲3.48 |
Newsletters /wp-admin/edit.php?post_type=lh-email-newsletter | 3.13 | 53.13 |
Send Email /wp-admin/tools.php?page=lh-email/lh-email.php | 3.12 | 34.12 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for LH Email
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,692 ▲120 | 15.88 ▲0.39 | 9.60 ▼0.94 | 46.17 ▼0.12 |
Dashboard /wp-admin | 2,982 ▲48 | 5.90 ▼0.11 | 139.11 ▼33.11 | 116.20 ▼4.10 |
Posts /wp-admin/edit.php | 2,767 ▲28 | 2.72 ▲0.01 | 69.45 ▼2.25 | 131.85 ▲30.90 |
Add New Post /wp-admin/post-new.php | 1,678 ▼5 | 18.80 ▲0.02 | 347.66 ▼52.53 | 116.78 ▼1.61 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.04 ▲0.01 | 164.26 ▲10.10 | 128.50 ▲8.72 |
Newsletters /wp-admin/edit.php?post_type=lh-email-newsletter | 1,416 | 2.63 | 60.78 | 74.69 |
Send Email /wp-admin/tools.php?page=lh-email/lh-email.php | 2,097 | 7.95 | 173.09 | 133.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-email/lh-email.php:562
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/lh-email/partials/components/send-newsletter.php:2
- > PHP Fatal error
require_once(): Failed opening required '../../../autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lh-email/csstoinlinestyles/tests/index.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/lh-email/lh_email-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/lh-email/partials/tools.php:5
- > PHP Warning
require_once(../../../autoload.php): failed to open stream: No such file or directory in wp-content/plugins/lh-email/csstoinlinestyles/tests/index.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: emails, newsletter, newsletters, smtp, email...
lh-email/lh-email.php Passed 13 tests
This is the main PHP file of "LH Email" version 1.12, 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:
Do email newsletters the LH way
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,191 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 501 | 329 | 815 |
CSS | 1 | 34 | 130 | 168 |
HTML | 1 | 9 | 17 | 123 |
Markdown | 3 | 28 | 0 | 59 |
JSON | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 22 | 62.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 37.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected