Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▲8.55ms] Passed 4 tests
This is a short check of server-side resources used by AdMail - Back in-stock notifier for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 44.37 ▲4.11 |
Dashboard /wp-admin | 3.61 ▲0.30 | 57.54 ▲8.78 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 60.45 ▲12.97 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 102.74 ▲9.90 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 47.02 ▲11.39 |
Trashed /wp-admin/admin.php?page=ambisn_tab_trashed | 3.49 | 45.29 |
All Products /wp-admin/admin.php?page=ambisn_all_products | 3.51 | 41.61 |
Out of stock ptoducts /wp-admin/admin.php?page=ambisn_tab_ofs | 3.50 | 43.15 |
Sent /wp-admin/admin.php?page=ambisn_tab_sent | 3.50 | 44.48 |
Settings /wp-admin/admin.php?page=ambisn_settings | 3.50 | 40.95 |
Available /wp-admin/admin.php?page=ambisn_tab_waiting | 3.51 | 44.33 |
AdMail /wp-admin/admin.php?page=ambisn_error | 3.50 | 41.06 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 56 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wc_admail |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
ambisn_debug_data |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for AdMail - Back in-stock notifier for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲104 | 14.24 ▼0.47 | 2.07 ▲0.44 | 37.78 ▼5.91 |
Dashboard /wp-admin | 2,244 ▲67 | 5.59 ▲0.03 | 96.81 ▼3.56 | 42.62 ▲0.68 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 1.98 ▲0.03 | 41.12 ▼2.44 | 34.96 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 23.30 ▼1.84 | 602.25 ▼26.09 | 51.52 ▼22.32 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.24 ▲0.13 | 100.37 ▲3.46 | 43.62 ▼0.25 |
Trashed /wp-admin/admin.php?page=ambisn_tab_trashed | 869 | 1.65 | 28.79 | 23.43 |
All Products /wp-admin/admin.php?page=ambisn_all_products | 870 | 1.63 | 24.80 | 20.67 |
Out of stock ptoducts /wp-admin/admin.php?page=ambisn_tab_ofs | 867 | 1.65 | 25.45 | 23.84 |
Sent /wp-admin/admin.php?page=ambisn_tab_sent | 863 | 1.66 | 25.94 | 25.91 |
Settings /wp-admin/admin.php?page=ambisn_settings | 866 | 1.62 | 25.48 | 25.25 |
Available /wp-admin/admin.php?page=ambisn_tab_waiting | 866 | 1.66 | 25.36 | 25.46 |
AdMail /wp-admin/admin.php?page=ambisn_error | 867 | 1.66 | 25.92 | 25.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_wc_admail
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- ambisn_debug_data
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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)
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/admail/includes/mail_templates/ambisn_template_template_2_free.php
- > /wp-content/plugins/admail/includes/mail_templates/ambisn_template_template_1_free.php
- 14× 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 plugin_dir_url() in wp-content/plugins/admail/index.php:28
- > PHP Warning
Use of undefined constant AMBISN_URL - assumed 'AMBISN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/admail/includes/template_preview.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function ambisn_allProducts() in wp-content/plugins/admail/includes/tabs/all.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/admail/includes/mail_templates/ambisn_template_template_1_free.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/admail/includes/template_preview.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/admail/includes/mail_templates/ambisn_template_template_2_free.php:128
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admail/includes/dev-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function ambisn_collected_emails() in wp-content/plugins/admail/includes/collected_emails_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/admail/includes/mail_templates/ambisn_template_default.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admail/includes/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: woocommerce, subscription, stock notifications, restock alerts, product availability...
admail/index.php 77% from 13 tests
The main PHP file in "AdMail - Back in-stock notifier for WooCommerce" ver. 1.5.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("admail.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,402 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 249 | 48 | 3,290 |
CSS | 4 | 61 | 2 | 1,425 |
JavaScript | 6 | 51 | 0 | 499 |
SVG | 13 | 25 | 7 | 188 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 81 | |
▷ Named functions | 81 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/lock.png | 1.08KB | 0.98KB | ▼ 9.45% |
assets/images/no_image.png | 17.19KB | 8.17KB | ▼ 52.45% |
assets/images/stati_bg1.png | 18.83KB | 6.43KB | ▼ 65.87% |
assets/images/add.png | 0.25KB | 0.18KB | ▼ 28.52% |
assets/images/wp-logo.png | 16.23KB | 17.38KB | 0.00% |