Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▼0.44ms] Passed 4 tests
Server-side resources used by BudgetMailer Sign Up Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 40.58 ▼3.59 |
Dashboard /wp-admin | 3.88 ▲0.58 | 47.78 ▲1.34 |
Posts /wp-admin/edit.php | 3.93 ▲0.58 | 51.62 ▼0.04 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 96.92 ▲7.28 |
Media Library /wp-admin/upload.php | 3.80 ▲0.58 | 38.00 ▲0.55 |
BudgetMailer Sign Up /wp-admin/options-general.php?page=budgetmailer | 3.79 | 37.92 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- The plugin illegally modified 1 file (0.01KB) outside of "wp-content/plugins/budgetmailer-sign-up-form/" and "wp-content/uploads/"
- (new file) wp-content/budgetmailer/.htaccess
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for BudgetMailer Sign Up Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲156 | 13.96 ▼0.31 | 8.05 ▲5.68 | 39.63 ▼4.47 |
Dashboard /wp-admin | 2,208 ▲20 | 5.83 ▲0.91 | 106.28 ▲4.61 | 43.00 ▲3.95 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.08 ▲0.08 | 39.80 ▼1.25 | 34.36 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 18.23 ▼4.62 | 601.16 ▼96.31 | 36.18 ▼25.82 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.16 ▼0.02 | 98.80 ▼2.86 | 40.97 ▼3.54 |
BudgetMailer Sign Up /wp-admin/options-general.php?page=budgetmailer | 931 | 1.80 | 24.06 | 25.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/budgetmailer-sign-up-form/view/captcha.php
- > /wp-content/plugins/budgetmailer-sign-up-form/view/head.php
- > /wp-content/plugins/budgetmailer-sign-up-form/view/messages.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: url in wp-content/plugins/budgetmailer-sign-up-form/view/head.php on line 4
- > PHP Notice
Undefined variable: captcha in wp-content/plugins/budgetmailer-sign-up-form/view/captcha.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function BudgetMailer\\Wordpress\\get_option() in wp-content/plugins/budgetmailer-sign-up-form/src/BudgetMailer/Wordpress/Settings.php:280
- > PHP Notice
Undefined variable: label in wp-content/plugins/budgetmailer-sign-up-form/view/captcha.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/budgetmailer-sign-up-form/src/BudgetMailer/Wordpress/Widget/Subscribe.php:17
- > PHP Fatal error
Uncaught Error: Class 'BudgetMailer\\Wordpress\\L10n' not found in wp-content/plugins/budgetmailer-sign-up-form/view/options.php:5
- > PHP Fatal error
Uncaught Error: Class 'BudgetMailer\\Wordpress\\L10n' not found in wp-content/plugins/budgetmailer-sign-up-form/view/subscribe.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/budgetmailer-sign-up-form/view/subscribe.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'BudgetMailer\\Wordpress\\L10n' not found in wp-content/plugins/budgetmailer-sign-up-form/view/checkbox.php:5
- > PHP Notice
Undefined variable: settings in wp-content/plugins/budgetmailer-sign-up-form/view/subscribe.php on line 8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: email marketing, newsletter sign up, sign up, subscribe widget, budgetmailer...
budgetmailer-sign-up-form/budgetmailer-sign-up-form.php Passed 13 tests
"BudgetMailer Sign Up Form" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
Easily add BudgetMailer newsletter sign up forms to your WordPress website with the offical BudgetMailer Sign Up Form plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,897 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 732 | 1,606 | 3,136 |
PO File | 2 | 208 | 260 | 448 |
JavaScript | 2 | 42 | 12 | 145 |
Markdown | 1 | 35 | 0 | 116 |
CSS | 2 | 8 | 0 | 52 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 200 | |
▷ Static methods | 9 | 4.50% |
▷ Public methods | 143 | 71.50% |
▷ Protected methods | 54 | 27.00% |
▷ Private methods | 3 | 1.50% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 74 | |
▷ Global constants | 1 | 1.35% |
▷ Class constants | 73 | 98.65% |
▷ Public constants | 73 | 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.16MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/loading.png | 0.79KB | 0.71KB | ▼ 11.07% |
assets/screenshot-2.png | 55.75KB | 32.80KB | ▼ 41.17% |
assets/hourglass.png | 0.70KB | 0.66KB | ▼ 6.80% |
assets/screenshot-3.png | 77.39KB | 40.14KB | ▼ 48.13% |
assets/screenshot-1.png | 30.04KB | 12.32KB | ▼ 58.98% |