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
Install script ran successfully
Server metrics [RAM: ▲1.18MB] [CPU: ▲12.29ms] Passed 4 tests
This is a short check of server-side resources used by Disable Email Notifications for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.66 ▲1.19 | 46.22 ▲8.28 |
Dashboard /wp-admin | 4.54 ▲1.19 | 58.90 ▲0.99 |
Posts /wp-admin/edit.php | 4.59 ▲1.23 | 83.10 ▲37.24 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 127.05 ▲27.34 |
Media Library /wp-admin/upload.php | 4.40 ▲1.17 | 49.22 ▲12.55 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 4.42 | 44.61 |
Disable Notifications /wp-admin/admin.php?page=woo-disable-email-notifications | 4.40 | 51.81 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 140 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
woo-disable-email-notifications |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Disable Email Notifications for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.35 ▼0.86 | 3.87 ▲2.05 | 38.06 ▲0.90 |
Dashboard /wp-admin | 2,243 ▲51 | 5.87 ▲0.93 | 95.89 ▼15.41 | 74.89 ▲34.38 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.00 ▲0.01 | 42.14 ▲7.27 | 48.16 ▲13.63 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 18.47 ▲1.03 | 703.58 ▲80.41 | 63.66 ▲8.89 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.24 ▲0.03 | 104.25 ▲4.23 | 74.14 ▲28.49 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,440 | 3.63 | 47.12 | 98.02 |
Disable Notifications /wp-admin/admin.php?page=woo-disable-email-notifications | 1,228 | 3.52 | 58.49 | 81.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-disable-email-notifications/includes/core.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-disable-email-notifications/includes/core.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #1 in woo-disable-email-notifications/assets to your readme.txt
woo-disable-email-notifications/main.php 92% from 13 tests
The main PHP script in "Disable Email Notifications for WooCommerce" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-disable-email-notifications.php" instead of "main.php")
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 plugin16,427 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 2,315 | 1,405 | 9,813 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
CSS | 3 | 63 | 2 | 402 |
JSON | 2 | 0 | 0 | 28 |
JavaScript | 2 | 2 | 2 | 2 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 20.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 5.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 235 | |
▷ Static methods | 50 | 21.28% |
▷ Public methods | 233 | 99.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.85% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/bp-logo-icon.png | 1.63KB | 1.63KB | 0.24% |
assets/img/004.png | 0.31KB | 0.25KB | ▼ 21.74% |
includes/codestar/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |