Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.33ms] Passed 4 tests
An overview of server-side resources used by Audit Charitable Donations Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.85 ▼0.15 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.86 ▼3.76 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.81 ▲2.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.53 ▼6.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.73 ▲0.82 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Audit Charitable Donations Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.30 ▼1.28 | 1.86 ▼0.03 | 42.41 ▼5.98 |
Dashboard /wp-admin | 2,213 ▲38 | 5.84 ▲0.88 | 101.76 ▼22.72 | 44.76 ▲2.20 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.02 | 42.66 ▲5.82 | 38.19 ▲3.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.03 ▼0.04 | 624.64 ▼61.74 | 54.47 ▲5.58 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.22 ▼0.03 | 98.17 ▼6.70 | 42.38 ▼5.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_expenses() in wp-content/plugins/audit-charitable-donations/includes/admin/views/expenses/add-expense.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 need to be fixed:
- Screenshots: Screenshot #4 (Detailed Donations Audit Report) image missing
audit-charitable-donations/audit-charitable-donations.php 85% from 13 tests
"Audit Charitable Donations Plugin" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.1" instead of "4.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,986 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 397 | 3,584 | 3,452 |
CSS | 3 | 11 | 23 | 813 |
PHP | 17 | 231 | 767 | 721 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 5 | 10.20% |
▷ Public methods | 38 | 77.55% |
▷ Protected methods | 3 | 6.12% |
▷ Private methods | 8 | 16.33% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 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
There were not PNG files found in your plugin