Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.72ms] Passed 4 tests
An overview of server-side resources used by PaiementPro for Give
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 48.13 ▲2.05 |
Dashboard /wp-admin | 3.34 ▲0.03 | 60.95 ▼3.20 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 57.21 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 113.88 ▲2.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.89 ▼1.94 |
Server storage [IO: ▲6.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 1,765 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by PaiementPro for Give
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲55 | 13.31 ▼1.06 | 5.30 ▲3.01 | 50.48 ▼6.07 |
Dashboard /wp-admin | 2,218 ▲33 | 5.80 ▼0.06 | 127.39 ▼0.19 | 51.48 ▲3.17 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.02 ▼0.02 | 43.93 ▲1.85 | 40.10 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.24 ▼0.14 | 823.13 ▲107.43 | 63.97 ▲8.75 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.28 ▲0.04 | 107.26 ▼24.32 | 45.45 ▼8.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/paiementpro-for-give/vendor/squizlabs/php_codesniffer/scripts/build-phar.php
- > /wp-content/plugins/paiementpro-for-give/vendor/phpcompatibility/php-compatibility/phpunit-bootstrap.php
- 841× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/paiementpro-for-give/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php:15
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionParameterSniff' not found in wp-content/plugins/paiementpro-for-give/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/PluginMenuSlugSniff.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\Sniff' not found in wp-content/plugins/paiementpro-for-give/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/Syntax/RemovedNewReferenceSniff.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/paiementpro-for-give/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\Sniff' not found in wp-content/plugins/paiementpro-for-give/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/Lists/ForbiddenEmptyListAssignmentSniff.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/paiementpro-for-give/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/paiementpro-for-give/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\AbstractFunctionCallParameterSniff' not found in wp-content/plugins/paiementpro-for-give/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/ParameterValues/ForbiddenStripTagsSelfClosingXHTMLSniff.php:25
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/paiementpro-for-give/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/paiementpro-for-give/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Global Settings screen), #2 (Donation Form Screen), #3 (Admin Gateways List Screen)
paiementpro-for-give/paiementpro-for-give.php Passed 13 tests
Analyzing the main PHP file in "PaiementPro for Give" version 1.0.2
62 characters long description:
Accept donations for GiveWP using PaiementPro payment gateway.
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
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/paiementpro-for-give/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/paiementpro-for-give/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,013 | 21,907 | 42,756 | 92,736 |
XML | 170 | 429 | 777 | 5,968 |
Pascal | 111 | 2,402 | 5,099 | 5,092 |
Markdown | 11 | 791 | 0 | 3,142 |
JavaScript | 57 | 756 | 859 | 2,090 |
JSON | 9 | 0 | 0 | 903 |
CSS | 33 | 189 | 92 | 665 |
XSD | 1 | 6 | 0 | 130 |
DOS Batch | 2 | 4 | 10 | 10 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 332)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 14.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 480.00 |
Average method complexity | 6.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 332.00 |
Code structure | ||
---|---|---|
Namespaces | 190 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 866 | |
▷ Abstract classes | 21 | 2.42% |
▷ Concrete classes | 845 | 97.58% |
▷ Final classes | 2 | 0.24% |
Methods | 2,366 | |
▷ Static methods | 76 | 3.21% |
▷ Public methods | 1,889 | 79.84% |
▷ Protected methods | 400 | 16.91% |
▷ Private methods | 77 | 3.25% |
Functions | 25 | |
▷ Named functions | 13 | 52.00% |
▷ Anonymous functions | 12 | 48.00% |
Constants | 141 | |
▷ Global constants | 105 | 74.47% |
▷ Class constants | 36 | 25.53% |
▷ Public constants | 36 | 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
No PNG files were detected