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.72MB] [CPU: ▼4.82ms] Passed 4 tests
This is a short check of server-side resources used by Donation Forms WP by Givecloud
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 44.35 ▲6.64 |
Dashboard /wp-admin | 4.04 ▲0.69 | 52.65 ▼5.49 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 49.86 ▲2.36 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.73 | 85.10 ▼22.19 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 39.93 ▲6.03 |
Server storage [IO: ▲4.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,412 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Donation Forms WP by Givecloud
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.25 ▼1.18 | 1.63 ▲0.09 | 45.53 ▲6.53 |
Dashboard /wp-admin | 2,251 ▲63 | 4.90 ▼0.89 | 114.45 ▲11.58 | 42.24 ▲0.13 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.03 ▲0.03 | 36.54 ▲1.83 | 33.28 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,543 ▲21 | 23.34 ▲0.20 | 661.41 ▲13.43 | 54.48 ▲4.99 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.19 ▼0.08 | 96.86 ▲3.12 | 42.63 ▲2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
- 242× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/symfony/var-dumper/Dumper/ServerDumper.php:23
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\Carbon' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/illuminate/support/Carbon.php:7
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/symfony/translation/Loader/YamlFileLoader.php:25
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/illuminate/support/Facades/Bus.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/symfony/translation/Dumper/QtFileDumper.php:21
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/illuminate/support/Facades/Response.php:25
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/symfony/var-dumper/Caster/TraceStub.php:21
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Inflector\\GenericLanguageInflectorFactory' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Portuguese/InflectorFactory.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/symfony/var-dumper/Cloner/AbstractCloner.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Cookie\\Factory' not found in wp-content/plugins/donation-forms-by-givecloud/vendor/illuminate/contracts/Cookie/QueueingFactory.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: fundraising, form builder, forms, paypal, givecloud...
donation-forms-by-givecloud/givecloud.php 62% from 13 tests
Analyzing the main PHP file in "Donation Forms WP by Givecloud" version 1.0.2
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("donation-forms-by-givecloud.php" instead of "givecloud.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("5.4" instead of "5.0")
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "5.6")
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/donation-forms-by-givecloud/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,170 | 11,324 | 37,354 | 55,593 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 2 | 0 | 0 | 1,139 |
Markdown | 19 | 316 | 0 | 794 |
CSS | 2 | 146 | 153 | 679 |
reStructuredText | 1 | 74 | 78 | 74 |
JavaScript | 1 | 0 | 0 | 10 |
XML | 1 | 2 | 1 | 6 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 10.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 89 | |
Interfaces | 126 | |
Traits | 36 | |
Classes | 345 | |
▷ Abstract classes | 21 | 6.09% |
▷ Concrete classes | 324 | 93.91% |
▷ Final classes | 45 | 13.89% |
Methods | 3,349 | |
▷ Static methods | 756 | 22.57% |
▷ Public methods | 2,879 | 85.97% |
▷ Protected methods | 278 | 8.30% |
▷ Private methods | 192 | 5.73% |
Functions | 485 | |
▷ Named functions | 126 | 25.98% |
▷ Anonymous functions | 359 | 74.02% |
Constants | 190 | |
▷ Global constants | 14 | 7.37% |
▷ Class constants | 176 | 92.63% |
▷ Public constants | 153 | 86.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 18.26KB | 5.39KB | ▼ 70.50% |