83% bp-notification-woocommerce

Code Review | BP notification woocommerce

WordPress plugin BP notification woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: bp-notification-w...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 15, 2014
  • Latest release: Dec 11, 2014
  • Number of updates: 14
  • Update frequency: every 1.9 days
  • Top authors: aghajoon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,624 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.86 ▼1.91
Dashboard /wp-admin3.35 ▲0.0448.84 ▼1.87
Posts /wp-admin/edit.php3.40 ▲0.0455.60 ▲2.57
Add New Post /wp-admin/post-new.php3.17 ▼2.7137.92 ▼68.61
Media Library /wp-admin/upload.php3.27 ▲0.0438.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.52 ▼0.858.00 ▲6.1238.19 ▼4.77
Dashboard /wp-admin2,225 ▲255.89 ▲1.0099.75 ▼1.6941.69 ▼3.24
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0339.41 ▲1.5235.73 ▲3.32
Add New Post /wp-admin/post-new.php6,248 ▲4,72225.98 ▲8.44958.90 ▲330.8961.48 ▲8.02
Media Library /wp-admin/upload.php1,404 ▲104.26 ▲0.07102.40 ▼0.7847.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP22510146
CSS115079
PO File181226
JavaScript11014

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 code0.25
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-3.png11.26KB4.52KB▼ 59.85%
screenshot-2.png36.73KB12.11KB▼ 67.03%
screenshot-1.png85.42KB29.07KB▼ 65.97%