Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.26ms] Passed 4 tests
A check of server-side resources used by Solpay Donation & Fundraising
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.91 ▲0.47 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.92 ▼18.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.80 ▼8.28 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.90 ▼14.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.69 ▲4.06 |
Solpay Donation & Fundraising /wp-admin/options-general.php?page=solpay-donation-fundraising | 3.28 | 42.79 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Solpay Donation & Fundraising
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 15.39 ▲1.01 | 85.66 ▲83.83 | 43.92 ▲5.77 |
Dashboard /wp-admin | 2,226 ▲23 | 4.85 ▼0.14 | 109.76 ▼0.61 | 43.91 ▲0.71 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.00 ▼0.01 | 39.23 ▼1.55 | 35.23 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.41 ▲5.76 | 670.19 ▼18.90 | 53.30 ▼1.96 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.18 ▼0.05 | 107.95 ▲12.42 | 45.44 ▲2.47 |
Solpay Donation & Fundraising /wp-admin/options-general.php?page=solpay-donation-fundraising | 1,606 | 6.79 | 144.28 | 72.86 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/solpay-donation-fundraising/public/partials/solpay-donation-fundraising-form.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/solpay-donation-fundraising/admin/partials/solpay-donation-fundraising-admin-settings.php:1
- > PHP Notice
Undefined variable: settings in wp-content/plugins/solpay-donation-fundraising/public/partials/solpay-donation-fundraising-form.php on line 5
- > PHP Warning
array_key_exists() expects parameter 2 to be array, string given in wp-content/plugins/solpay-donation-fundraising/public/partials/solpay-donation-fundraising-form.php on line 5
- > PHP Warning
Use of undefined constant SOLPAY_DONATION_FUNDRAISING_SPL_TOKENS - assumed 'SOLPAY_DONATION_FUNDRAISING_SPL_TOKENS' (this will throw an Error in a future version of PHP) in wp-content/plugins/solpay-donation-fundraising/public/partials/solpay-donation-fundraising-form.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/solpay-donation-fundraising/public/partials/solpay-donation-fundraising-form.php:12
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No plugin tags provided
solpay-donation-fundraising/solpay-donation-fundraising.php Passed 13 tests
The principal PHP file in "Solpay Donation & Fundraising" v. 1.0.0 is loaded by WordPress automatically on each request
29 characters long description:
Solpay Donation & Fundraising
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
Success! There were no dangerous files found in this plugin1,075 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 203 | 519 | 533 |
TypeScript | 6 | 79 | 0 | 326 |
Sass | 1 | 36 | 0 | 169 |
JSON | 2 | 0 | 0 | 38 |
JavaScript | 3 | 3 | 28 | 8 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin