Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.52MB] [CPU: ▲0.88ms] Passed 4 tests
An overview of server-side resources used by BlossomThemes Email Newsletter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.53 | 48.33 ▲8.32 |
Dashboard /wp-admin | 4.83 ▲1.52 | 51.65 ▲0.37 |
Posts /wp-admin/edit.php | 4.88 ▲1.52 | 50.08 ▼2.05 |
Add New Post /wp-admin/post-new.php | 7.42 ▲1.53 | 96.72 ▼3.12 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 44.62 ▲10.31 |
All Newsletters /wp-admin/edit.php?post_type=subscribe-form | 4.83 | 46.52 |
Add New /wp-admin/post-new.php?post_type=subscribe-form | 4.86 | 55.56 |
Server storage [IO: ▲3.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,360 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_blossomthemes_email_newsletter_widget |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BlossomThemes Email Newsletter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲198 | 13.49 ▼0.89 | 8.23 ▲6.67 | 38.25 ▼5.55 |
Dashboard /wp-admin | 2,225 ▲45 | 5.56 ▼0.11 | 81.59 ▼10.58 | 39.08 ▼2.77 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.01 ▼0.02 | 34.57 ▲0.54 | 36.09 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,563 ▲28 | 18.11 ▼0.12 | 602.83 ▼123.97 | 64.67 ▼12.50 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.26 ▲0.06 | 95.42 ▼1.59 | 43.39 ▼2.48 |
All Newsletters /wp-admin/edit.php?post_type=subscribe-form | 1,295 | 3.59 | 44.86 | 32.15 |
Add New /wp-admin/post-new.php?post_type=subscribe-form | 2,169 | 4.59 | 94.97 | 45.94 |
Settings /wp-admin/class-blossomthemes-email-newsletter-admin.php | 26 | 0.42 | 0.07 | 13.42 |
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: 7 options
- widget_blossomthemes_email_newsletter_widget
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/blossomthemes-email-newsletter/includes/libs/aweber/subscribe.php
- > /wp-content/plugins/blossomthemes-email-newsletter/admin/partials/blossomthemes-email-newsletter-admin-display.php
- > /wp-content/plugins/blossomthemes-email-newsletter/public/partials/blossomthemes-email-newsletter-public-display.php
- 953× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\ValueList' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php/src/Operation/Forms/GetForms/GetFormsFields.php:6
- > PHP Fatal error
Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\SearchQuery' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php/src/Operation/FileLibrary/Files/GetFiles/GetFilesSearchQuery.php:6
- > PHP Fatal error
Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\QueryOperation' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php/src/Operation/Forms/GetForm/GetForm.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php-client/tests/Unit/Debugger/JsonStreamReaderTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\QueryOperation' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php/src/Operation/TransactionalEmails/Statistics/GetStatistics/GetStatistics.php:7
- > PHP Fatal error
Uncaught Error: Class 'MailerLiteApi\\Common\\ApiAbstract' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/mailerlite/mailerlite-api-v2-php-sdk/src/Api/Groups.php:12
- > PHP Fatal error
Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\ValueList' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php/src/Operation/Contacts/GetContact/GetContactFields.php:6
- > PHP Fatal error
Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\BaseModel' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php/src/Operation/Model/TemplateColorVariantShort.php:6
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/blossomthemes-email-newsletter/vendor/getresponse/sdk-php/examples/newsletterCreate.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/blossomthemes-email-newsletter/vendor/php-http/message/src/Authentication/AutoBasicAuth.php:13
- > PHP Fatal error
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/class-blossomthemes-email-newsletter-admin.php
- > Network (severe)
wp-admin/class-blossomthemes-email-newsletter-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 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
3 plugin tags: newsletter, email, subscribe
blossomthemes-email-newsletter/blossomthemes-email-newsletter.php Passed 13 tests
The principal PHP file in "BlossomThemes Email Newsletter" v. 2.2.5 is loaded by WordPress automatically on each request
78 characters long description:
Easily add email subscription form to your website using shortcode and widget.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin79,908 lines of code in 1,308 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,187 | 14,340 | 25,375 | 67,809 |
Markdown | 62 | 2,736 | 0 | 6,310 |
JSON | 33 | 0 | 0 | 3,292 |
CSS | 5 | 192 | 29 | 1,671 |
JavaScript | 3 | 24 | 21 | 442 |
YAML | 9 | 37 | 3 | 170 |
XML | 5 | 6 | 3 | 154 |
HTML | 1 | 3 | 0 | 30 |
SVG | 1 | 0 | 0 | 11 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 275 | |
Interfaces | 63 | |
Traits | 18 | |
Classes | 1,050 | |
▷ Abstract classes | 21 | 2.00% |
▷ Concrete classes | 1,029 | 98.00% |
▷ Final classes | 116 | 11.27% |
Methods | 4,773 | |
▷ Static methods | 252 | 5.28% |
▷ Public methods | 4,367 | 91.49% |
▷ Protected methods | 171 | 3.58% |
▷ Private methods | 235 | 4.92% |
Functions | 251 | |
▷ Named functions | 94 | 37.45% |
▷ Anonymous functions | 157 | 62.55% |
Constants | 543 | |
▷ Global constants | 93 | 17.13% |
▷ Class constants | 450 | 82.87% |
▷ Public constants | 443 | 98.44% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin