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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.91MB] [CPU: ▼175.73ms] Passed 4 tests
This is a short check of server-side resources used by Pay A Coffee Plugin for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 37.81 ▲18.96 |
Dashboard /wp-admin | 2.74 ▼0.31 | 21.70 ▼30.01 |
Posts /wp-admin/edit.php | 2.74 ▼0.37 | 24.98 ▼23.09 |
Add New Post /wp-admin/post-new.php | 2.74 ▼2.69 | 24.73 ▼630.68 |
Media Library /wp-admin/upload.php | 2.74 ▼0.27 | 21.27 ▼19.12 |
Pay A Coffee /wp-admin/options-general.php?page=PayACoffee | 2.74 | 23.42 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pay A Coffee Plugin for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.23 ▲0.34 | 8.25 ▼1.36 | 53.32 ▲1.30 |
Dashboard /wp-admin | 2,972 ▲41 | 5.89 ▼0.27 | 144.61 ▼4.28 | 112.82 ▼6.82 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 69.72 ▼5.92 | 93.65 ▼6.19 |
Add New Post /wp-admin/post-new.php | 1,686 ▲14 | 18.73 ▼0.03 | 384.88 ▲23.37 | 111.25 ▼11.36 |
Media Library /wp-admin/upload.php | 1,753 ▼54 | 4.99 ▼0.03 | 154.68 ▼8.20 | 124.61 ▼5.16 |
Pay A Coffee /wp-admin/options-general.php?page=PayACoffee | 1,187 | 2.09 | 60.66 | 92.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=PayACoffee
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=PayACoffee
- > Notice in wp-content/plugins/pay-a-coffee/payacoffee_options.php+2
Undefined index: payacoffee_hidden
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: payacoffee_hidden in wp-content/plugins/pay-a-coffee/payacoffee_options.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pay-a-coffee/payacoffee_options.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pay-a-coffee/payacoffee.php:34
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #2 in pay-a-coffee/assets to your readme.txt
pay-a-coffee/payacoffee.php 92% from 13 tests
The main PHP file in "Pay A Coffee Plugin for WordPress" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pay-a-coffee.php" instead of "payacoffee.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin100 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 8 | 100 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 0 | |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 9.13KB | 5.41KB | ▼ 40.76% |