79% pipe-web-monetization

Code Review | Pipe Web Monetization

WordPress plugin Pipe Web Monetization scored79%from 54 tests.

About plugin

  • Plugin page: pipe-web-monetiza...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 11
  • Update frequency: every 38.2 days
  • Top authors: pipewebmonetization (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /326 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.88ms] Passed 4 tests

A check of server-side resources used by Pipe Web Monetization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0938.34 ▼4.12
Dashboard /wp-admin3.39 ▲0.0946.22 ▼4.17
Posts /wp-admin/edit.php3.51 ▲0.1548.65 ▲0.27
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.55 ▲3.66
Media Library /wp-admin/upload.php3.31 ▲0.0836.27 ▲0.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 39 new files
Database: 1 new table, 7 new options
New tables
wp_payment_pointers
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
category_children
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Pipe Web Monetization
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲11113.48 ▼1.168.56 ▲6.5940.93 ▼5.21
Dashboard /wp-admin2,217 ▲435.53 ▲0.0085.24 ▼11.5077.16 ▲31.39
Posts /wp-admin/edit.php2,158 ▲551.98 ▲0.0233.38 ▼5.1234.73 ▼0.88
Add New Post /wp-admin/post-new.php1,699 ▲16822.23 ▼0.75708.29 ▲4.3959.36 ▲4.54
Media Library /wp-admin/upload.php1,425 ▲224.23 ▲0.1297.56 ▼18.2282.87 ▲36.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • category_children
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pipe-web-monetization/admin/partials/pipe-web-monetization-admin-display.php
    • > /wp-content/plugins/pipe-web-monetization/public/partials/pipe-web-monetization-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pipe-web-monetization/admin/index.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: payment, pipe, monetization, web

pipe-web-monetization/pipe-web-monetization.php Passed 13 tests

The primary PHP file in "Pipe Web Monetization" version 1.0.6 is used by WordPress to initiate all plugin functionality
106 characters long description:
Pipe allows you to control who gets paid for your content and connect your payments to an admin dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,420 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP16244824820
CSS25813335
JavaScript23625250
SVG30015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.78
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1227.27%
▷ Public methods3068.18%
▷ Protected methods00.00%
▷ Private methods1431.82%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png58.13KB15.54KB▼ 73.27%
img/logo.png73.19KB12.08KB▼ 83.50%
img/icon_plus.png0.58KB0.63KB0.00%
img/logo_menu.png0.53KB0.37KB▼ 30.44%
public/img/logo_menu.png0.53KB0.37KB▼ 30.44%