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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 38.34 ▼4.12 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.22 ▼4.17 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.65 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 85.55 ▲3.66 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲111 | 13.48 ▼1.16 | 8.56 ▲6.59 | 40.93 ▼5.21 |
Dashboard /wp-admin | 2,217 ▲43 | 5.53 ▲0.00 | 85.24 ▼11.50 | 77.16 ▲31.39 |
Posts /wp-admin/edit.php | 2,158 ▲55 | 1.98 ▲0.02 | 33.38 ▼5.12 | 34.73 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,699 ▲168 | 22.23 ▼0.75 | 708.29 ▲4.39 | 59.36 ▲4.54 |
Media Library /wp-admin/upload.php | 1,425 ▲22 | 4.23 ▲0.12 | 97.56 ▼18.22 | 82.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 244 | 824 | 820 |
CSS | 2 | 58 | 13 | 335 |
JavaScript | 2 | 36 | 25 | 250 |
SVG | 3 | 0 | 0 | 15 |
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 code | 0.39 |
Average class complexity | 6.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 12 | 27.27% |
▷ Public methods | 30 | 68.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 31.82% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 58.13KB | 15.54KB | ▼ 73.27% |
img/logo.png | 73.19KB | 12.08KB | ▼ 83.50% |
img/icon_plus.png | 0.58KB | 0.63KB | 0.00% |
img/logo_menu.png | 0.53KB | 0.37KB | ▼ 30.44% |
public/img/logo_menu.png | 0.53KB | 0.37KB | ▼ 30.44% |