Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.06ms] Passed 4 tests
An overview of server-side resources used by Mailcoach
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.47 ▼8.01 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.22 ▲1.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.90 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 104.65 ▲12.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.72 ▼6.13 |
Server storage [IO: ▲1.24MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 276 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Mailcoach
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.37 | 1.69 ▼0.04 | 48.92 ▲8.42 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▼0.10 | 92.31 ▼8.02 | 42.53 ▲3.39 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.02 ▼0.00 | 39.99 ▲2.95 | 35.09 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.49 ▲0.60 | 709.85 ▲26.61 | 55.60 ▲4.11 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.27 ▼0.01 | 100.54 ▼1.52 | 45.75 ▼0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 | 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
Please fix the following items
- 85× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/forms-mailcoach/src/Admin/views/show-settings.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/forms-mailcoach/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/forms-mailcoach/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jp0740443ce017f1531b490b73bd12e0c4\\wp_normalize_path() in wp-content/plugins/forms-mailcoach/vendor/jetpack-autoloader/class-path-processor.php:73
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/forms-mailcoach/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/forms-mailcoach/src/Admin/Data/CreateSubscriberData.php on line 23
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/forms-mailcoach/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/forms-mailcoach/vendor/guzzlehttp/psr7/src/Uri.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/forms-mailcoach/vendor/guzzlehttp/promises/src/EachPromise.php:13
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/forms-mailcoach/vendor/spatie/mailcoach-sdk-php/src/Actions/ManagesCampaigns.php on line 45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: mailcoach, mass mailing, developer, spatie, mail
forms-mailcoach/wp-mailcoach.php 85% from 13 tests
The principal PHP file in "Mailcoach" v. 0.0.10 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("forms-mailcoach.php" instead of "wp-mailcoach.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin24,226 lines of code in 259 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 206 | 3,274 | 7,370 | 15,016 |
Markdown | 25 | 1,767 | 0 | 4,619 |
JSON | 17 | 1 | 0 | 3,118 |
CSS | 7 | 266 | 157 | 1,450 |
XML | 2 | 4 | 1 | 17 |
Bourne Shell | 1 | 1 | 0 | 3 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 10.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 28 | |
Traits | 7 | |
Classes | 145 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 145 | 100.00% |
▷ Final classes | 35 | 24.14% |
Methods | 1,071 | |
▷ Static methods | 195 | 18.21% |
▷ Public methods | 890 | 83.10% |
▷ Protected methods | 17 | 1.59% |
▷ Private methods | 164 | 15.31% |
Functions | 122 | |
▷ Named functions | 19 | 15.57% |
▷ Anonymous functions | 103 | 84.43% |
Constants | 71 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 71 | 100.00% |
▷ Public constants | 60 | 84.51% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin