Benchmarks
Plugin footprint 83% from 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.16MB] [CPU: ▼2.45ms] Passed 4 tests
Analyzing server-side resources used by relario PAY Donation & Paywall Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.86 ▲2.38 |
Dashboard /wp-admin | 3.48 ▲0.18 | 48.59 ▲0.67 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.91 ▼7.69 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 93.63 ▼3.72 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 39.35 ▲0.96 |
Relario PAY /wp-admin/options-general.php?page=relario-pay | 3.37 | 38.02 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
relario PAY Donation & Paywall Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲118 | 13.69 ▼0.91 | 9.28 ▲7.28 | 43.62 ▼0.19 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▲0.02 | 85.69 ▼15.28 | 44.22 ▲2.01 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.08 | 36.62 ▼1.10 | 33.57 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.14 ▲0.12 | 654.12 ▼38.56 | 60.78 ▼11.84 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.13 ▼0.09 | 103.45 ▼6.86 | 50.39 ▲3.26 |
Relario PAY /wp-admin/options-general.php?page=relario-pay | 900 | 1.99 | 25.50 | 31.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/relario-pay/templates/buttons/donate.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/relario-pay/templates/buttons/button.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in relario-pay/assets to your readme.txt
- Donate link: Invalid url: ""
- Requires php: Version not formatted correctly
relario-pay/plugin.php 92% from 13 tests
The principal PHP file in "relario PAY Donation & Paywall Plugin" v. 1.0.5 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("relario-pay.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin12,686 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 11,798 |
PHP | 12 | 229 | 352 | 521 |
CSS | 2 | 27 | 2 | 207 |
JavaScript | 4 | 37 | 25 | 129 |
SVG | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/front-end/img/support.png | 13.03KB | 5.25KB | ▼ 59.72% |