Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼143.05ms] Passed 4 tests
Analyzing server-side resources used by Freshjet
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.15 ▲0.42 | 36.90 ▲14.14 |
Dashboard /wp-admin | 3.44 ▲0.38 | 53.81 ▲0.87 |
Posts /wp-admin/edit.php | 3.49 ▲0.38 | 49.40 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.74 ▲0.30 | 91.25 ▼576.05 |
Media Library /wp-admin/upload.php | 3.32 ▲0.32 | 39.29 ▲5.59 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 145 new files
Database: no new tables, 1 new option
New WordPress options |
---|
freshjet_options |
Browser metrics Passed 4 tests
Checking browser requirements for Freshjet
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,753 ▲147 | 16.24 ▲0.56 | 9.19 ▼0.02 | 47.96 ▼5.20 |
Dashboard /wp-admin | 3,013 ▲82 | 5.86 ▼0.08 | 138.82 ▼13.98 | 142.27 ▲11.74 |
Posts /wp-admin/edit.php | 2,790 ▲54 | 2.58 ▼0.12 | 65.94 ▼4.16 | 92.02 ▼11.45 |
Add New Post /wp-admin/post-new.php | 1,922 ▲341 | 23.66 ▲5.62 | 397.54 ▲0.58 | 113.64 ▼14.79 |
Media Library /wp-admin/upload.php | 1,801 ▼6 | 4.99 ▼0.07 | 138.59 ▼20.49 | 135.01 ▼4.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- freshjet_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 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
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/freshjet/functions.php
- > /wp-content/plugins/freshjet/autoload.php
- > /wp-content/plugins/freshjet/freshjet.php
- 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/promises/src/FulfilledPromise.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/psr7/src/Request.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/promises/src/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/psr7/src/LimitStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/freshjet/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > 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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: mailjet, freshjet, smtp email, transactional email, wp_mail smtp
freshjet/freshjet.php Passed 13 tests
The main PHP file in "Freshjet" ver. 0.6.6 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
Mailjet wp_mail() drop-in replacement.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin13,570 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 1,977 | 5,301 | 9,446 |
Markdown | 11 | 1,086 | 0 | 3,399 |
JSON | 8 | 0 | 0 | 552 |
CSS | 1 | 29 | 3 | 128 |
XML | 1 | 1 | 3 | 15 |
YAML | 1 | 0 | 0 | 15 |
make | 1 | 4 | 0 | 9 |
SVG | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 73 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 73 | 100.00% |
▷ Final classes | 8 | 10.96% |
Methods | 736 | |
▷ Static methods | 67 | 9.10% |
▷ Public methods | 589 | 80.03% |
▷ Protected methods | 5 | 0.68% |
▷ Private methods | 142 | 19.29% |
Functions | 144 | |
▷ Named functions | 58 | 40.28% |
▷ Anonymous functions | 86 | 59.72% |
Constants | 70 | |
▷ Global constants | 7 | 10.00% |
▷ Class constants | 63 | 90.00% |
▷ Public constants | 63 | 100.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
5 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mailjet-logo-small.png | 1.10KB | 0.95KB | ▼ 13.93% |
assets/images/icon-256x256.png | 9.84KB | 4.67KB | ▼ 52.47% |
assets/images/banner-772x250.png | 40.81KB | 16.59KB | ▼ 59.35% |
assets/images/screenshot-1.png | 73.30KB | 33.31KB | ▼ 54.56% |
assets/images/mailjet-logo.png | 18.21KB | 4.73KB | ▼ 74.04% |