Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.79ms] Passed 4 tests
This is a short check of server-side resources used by SAM Donation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.77 ▲2.33 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.40 ▼12.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.28 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.96 ▼29.38 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.33 ▼1.40 |
SAM Donate /wp-admin/plugins.php?page=sam-admin | 3.17 | 29.64 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
sam_options_group |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for SAM Donation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.15 ▼1.24 | 1.72 ▲0.17 | 41.64 ▲1.31 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▲0.81 | 98.13 ▼1.09 | 38.47 ▼5.75 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.04 | 38.57 ▼0.84 | 33.95 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.32 ▼4.86 | 671.61 ▲29.46 | 53.34 ▼8.02 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.13 | 95.30 ▼19.47 | 41.18 ▼6.96 |
SAM Donate /wp-admin/plugins.php?page=sam-admin | 849 | 2.02 | 22.52 | 27.99 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- sam_options_group
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=sam-admin
- > Notice in wp-content/plugins/sam-donation/sam-admin.php+20
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sam-donation/sam-donation.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/sam-donation/donate.php on line 65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sam-donation/sam-admin.php:35
- > PHP Parse 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: donation, mission, sam, south america, donate
sam-donation/sam-donation.php 92% from 13 tests
The main PHP script in "SAM Donation" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 276 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected160 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 26 | 160 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 57.06KB | 15.25KB | ▼ 73.28% |
assets/screenshot-1.png | 89.41KB | 33.99KB | ▼ 61.99% |