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.27MB] [CPU: ▼2.03ms] Passed 4 tests
Server-side resources used by tinyCoffee
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 40.85 ▼4.57 |
Dashboard /wp-admin | 3.58 ▲0.27 | 53.84 ▲0.99 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 47.66 ▼0.49 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 88.38 ▼4.06 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.28 ▲2.90 |
tinyCoffee /wp-admin/options-general.php?page=tiny_coffee_options | 3.47 | 37.01 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
tiny_coffee_options |
widget_coffee_widget |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for tinyCoffee
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,008 ▲273 | 13.76 ▼0.62 | 11.03 ▲9.30 | 36.71 ▼16.16 |
Dashboard /wp-admin | 2,213 ▲28 | 5.82 ▼0.03 | 106.81 ▼11.14 | 40.01 ▼6.19 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.00 | 37.54 ▼0.32 | 30.93 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 18.29 ▼5.15 | 642.40 ▲23.99 | 80.42 ▲9.37 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.01 | 101.72 ▼4.57 | 43.56 ▼1.61 |
tinyCoffee /wp-admin/options-general.php?page=tiny_coffee_options | 4,680 | 2.03 | 24.65 | 32.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- tiny_coffee_options
- widget_coffee_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tinycoffee/tinycoffee.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tinycoffee/includes/widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: donate widget, coffee, donate button, donate shortcode, donate...
tinycoffee/tinycoffee.php Passed 13 tests
"tinyCoffee" version 0.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
27 characters long description:
Ask people for coffee money
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,146 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 97 | 153 | 621 |
CSS | 3 | 27 | 0 | 228 |
PO File | 2 | 77 | 84 | 187 |
JavaScript | 3 | 0 | 1 | 75 |
Markdown | 1 | 17 | 0 | 35 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 15 | 42.86% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 28.64KB | 12.73KB | ▼ 55.55% |
screenshot-2.png | 4.90KB | 3.24KB | ▼ 33.96% |
screenshot-3.png | 28.53KB | 12.82KB | ▼ 55.07% |