Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.65MB] [CPU: ▼17.46ms] Passed 4 tests
Server-side resources used by BP notification woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.86 ▼1.91 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.84 ▼1.87 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 55.60 ▲2.57 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.71 | 37.92 ▼68.61 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.15 ▲3.06 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by BP notification woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 13.52 ▼0.85 | 8.00 ▲6.12 | 38.19 ▼4.77 |
Dashboard /wp-admin | 2,225 ▲25 | 5.89 ▲1.00 | 99.75 ▼1.69 | 41.69 ▼3.24 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.03 | 39.41 ▲1.52 | 35.73 ▲3.32 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,722 | 25.98 ▲8.44 | 958.90 ▲330.89 | 61.48 ▲8.02 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.26 ▲0.07 | 102.40 ▼0.78 | 47.63 ▲3.38 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 1× 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/bp-notification-woocommerce/bp-not-woo-admin.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== bp-notification-woocommerce ===
) - Screenshots: Add images for these screenshots: #1 (notification woocommerce product), #2 (notification woocommerce product), #3 (dashboard woocommerce product)
bp-notification-woocommerce/bp-not-woo.php 92% from 13 tests
The primary PHP file in "BP notification woocommerce" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-notification-woocommerce.php" instead of "bp-not-woo.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
Good job! No executable or dangerous file extensions detected265 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 10 | 146 |
CSS | 1 | 15 | 0 | 79 |
PO File | 1 | 8 | 12 | 26 |
JavaScript | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
3 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 11.26KB | 4.52KB | ▼ 59.85% |
screenshot-2.png | 36.73KB | 12.11KB | ▼ 67.03% |
screenshot-1.png | 85.42KB | 29.07KB | ▼ 65.97% |