94% woo-fnnldb

Code Review | WooCommerce FnnlDb

WordPress plugin WooCommerce FnnlDb scored 94% from 54 tests.

About plugin

  • Plugin page: woo-fnnldb
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 5.8.1
  • First release: May 20, 2019
  • Latest release: May 21, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: fnnldb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 267 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼142.46ms] Passed 4 tests

A check of server-side resources used by WooCommerce FnnlDb
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0638.51 ▲6.12
Dashboard /wp-admin3.11 ▲0.0644.43 ▼2.71
Posts /wp-admin/edit.php3.17 ▲0.0641.85 ▼2.52
Add New Post /wp-admin/post-new.php5.48 ▲0.0592.67 ▼558.06
Media Library /wp-admin/upload.php3.06 ▲0.0531.74 ▼6.54

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce FnnlDb
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9415.79 ▲0.227.60 ▼0.0645.45 ▼1.45
Dashboard /wp-admin2,983 ▲525.92 ▼0.13130.33 ▼15.43102.92 ▼11.00
Posts /wp-admin/edit.php2,749 ▲102.69 ▲0.0067.87 ▲4.6091.36 ▼4.16
Add New Post /wp-admin/post-new.php1,507 ▼36518.45 ▼0.69342.50 ▼21.92110.93 ▼0.17
Media Library /wp-admin/upload.php1,820 ▲134.99 ▼0.12154.18 ▲7.50120.48 ▼0.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-fnnldb/templates/payment_fields.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce, payment request, fnnldb, credit card

woo-fnnldb/woo-fnnldb.php 92% from 13 tests

The main file in "WooCommerce FnnlDb" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin291 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24615291

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods318.75%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin