Benchmarks
Plugin footprint Passed 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.11MB] [CPU: ▼268.15ms] Passed 4 tests
Analyzing server-side resources used by Admail Signup Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 44.52 ▲24.89 |
Dashboard /wp-admin | 3.15 ▲0.10 | 47.65 ▲3.97 |
Posts /wp-admin/edit.php | 3.26 ▲0.16 | 41.70 ▼4.72 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.09 | 96.68 ▼1,061.81 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 30.56 ▼10.05 |
Server storage [IO: ▲2.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 234 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Admail Signup Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,675 ▲69 | 15.81 ▲0.26 | 8.14 ▲0.01 | 46.75 ▼1.74 |
Dashboard /wp-admin | 2,929 ▲79 | 6.08 ▲0.26 | 140.87 ▲10.33 | 117.96 ▲16.02 |
Posts /wp-admin/edit.php | 2,705 ▼1 | 2.71 ▲0.01 | 64.19 ▼3.17 | 91.60 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,855 ▲202 | 19.07 ▲0.32 | 353.39 ▼17.19 | 108.05 ▼9.51 |
Media Library /wp-admin/upload.php | 1,774 ▲2 | 5.01 ▼0.09 | 157.78 ▼4.82 | 114.15 ▼14.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/admail-list-builder-signup-forms/admin/partials/class-admail-admin-display.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
- > PHP Notice
Undefined variable: admail_atts in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php:17
- > PHP Notice
Undefined variable: admail_atts in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
- > PHP Notice
Undefined variable: admail_atts in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
- > PHP Notice
Undefined variable: admail_atts in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
- > PHP Notice
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 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: admail, invite form, email marketing, admail email, contact...
admail-list-builder-signup-forms/admail.php 77% from 13 tests
"Admail Signup Forms" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("admail-list-builder-signup-forms.php" instead of "admail.php")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("/languages *")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin23,423 lines of code in 190 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 157 | 5,815 | 5,501 | 21,318 |
CSS | 8 | 164 | 82 | 793 |
Markdown | 3 | 240 | 0 | 468 |
PHP | 14 | 166 | 788 | 434 |
JSON | 6 | 0 | 0 | 281 |
HTML | 2 | 13 | 1 | 129 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 6 | 15.38% |
▷ Public methods | 32 | 82.05% |
▷ Protected methods | 2 | 5.13% |
▷ Private methods | 5 | 12.82% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
12 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/controls.png | 1.59KB | 1.67KB | 0.00% |
node_modules/jquery-colorbox/example2/images/controls.png | 0.49KB | 0.57KB | 0.00% |
node_modules/jquery-colorbox/example5/images/border.png | 0.14KB | 0.16KB | 0.00% |
node_modules/jquery-colorbox/example5/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
node_modules/jquery-colorbox/example4/images/border2.png | 0.11KB | 0.16KB | 0.00% |