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.37MB] [CPU: ▼312.95ms] Passed 4 tests
An overview of server-side resources used by Coil Web Monetization
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.45 | 65.27 ▲4.61 |
Dashboard /wp-admin | 3.82 ▲0.41 | 38.89 ▼31.19 |
Posts /wp-admin/edit.php | 4.04 ▲0.40 | 42.25 ▲0.41 |
Add New Post /wp-admin/post-new.php | 7.25 ▲0.27 | 101.86 ▼1,220.40 |
Media Library /wp-admin/upload.php | 3.70 ▲0.40 | 31.17 ▼0.60 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 4.42 | 39.31 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Coil Web Monetization
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,865 ▲111 | 16.01 ▲0.41 | 5.90 ▼0.36 | 2.86 ▲0.05 |
Dashboard /wp-admin | 2,926 ▲72 | 6.10 ▼0.13 | 124.82 ▼12.82 | 182.18 ▲18.14 |
Posts /wp-admin/edit.php | 2,726 ▲39 | 3.24 ▼0.00 | 64.01 ▼31.14 | 147.04 ▼16.08 |
Add New Post /wp-admin/post-new.php | 1,764 ▲45 | 19.41 ▼3.07 | 460.77 ▲50.69 | 199.04 ▲37.04 |
Media Library /wp-admin/upload.php | 1,734 ▲36 | 5.55 ▲0.05 | 132.13 ▼18.03 | 212.27 ▲24.04 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 5,608 | 18.50 | 560.62 | 157.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/coil-web-monetization/includes/functions.php+92
Undefined index: post
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/coil-web-monetization/includes/functions.php+92
Trying to get property 'post_type' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/coil-web-monetization/templates/messages/split-content-message.php
- > /wp-content/plugins/coil-web-monetization/templates/messages/banner-message.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/coil-web-monetization/templates/messages/subscriber-only-message.php:18
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Requires at least: Version format is invalid
- Screenshots: These screenshots do not have images: #1 (Simple setup), #2 (Great support), #3 (Exclusive content)
coil-web-monetization/plugin.php 85% from 13 tests
The main PHP script in "Coil Web Monetization" version 1.9.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("coil-web-monetization.php" instead of "plugin.php")
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.1" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,742 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 426 | 605 | 1,572 |
Sass | 9 | 127 | 21 | 773 |
JavaScript | 9 | 132 | 333 | 653 |
CSS | 10 | 43 | 21 | 617 |
Markdown | 1 | 49 | 0 | 110 |
SVG | 3 | 0 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 78 | |
▷ Named functions | 74 | 94.87% |
▷ Anonymous functions | 4 | 5.13% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 1.87MB with 1.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 551.03KB | 166.82KB | ▼ 69.73% |
screenshot-3.png | 680.31KB | 227.78KB | ▼ 66.52% |
screenshot-2.png | 633.19KB | 243.70KB | ▼ 61.51% |
screenshot-4.png | 46.57KB | 15.07KB | ▼ 67.65% |