Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.22ms] Passed 4 tests
Analyzing server-side resources used by Cashbene Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.04 ▼3.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.27 ▼5.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.74 ▲2.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.86 ▼13.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.88 ▲2.51 |
Server storage [IO: ▲18.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2,022 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Cashbene Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.16 ▼1.52 | 1.61 ▼0.15 | 41.05 ▼2.59 |
Dashboard /wp-admin | 2,206 ▲15 | 5.80 ▼0.10 | 100.38 ▼10.30 | 37.25 ▼10.30 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.01 | 36.20 ▲1.65 | 33.16 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,520 ▼13 | 23.54 ▲0.43 | 689.61 ▲35.17 | 60.39 ▲5.98 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.17 ▼0.03 | 93.91 ▼8.39 | 40.79 ▼4.91 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cashbene-payment-gateway/vendor/cashbene/core/tests/test.php
- 370× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cashbene-payment-gateway/templates/admin/admin_page.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\ChunkInterface' not found in wp-content/plugins/cashbene-payment-gateway/vendor/symfony/http-client/Chunk/ErrorChunk.php:22
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' not found in wp-content/plugins/cashbene-payment-gateway/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php:26
- > PHP Fatal error
Uncaught LogicException: You cannot use the "Symfony\\Component\\HttpClient\\Psr18Client" as the "psr/http-factory" package is not installed. Try running "composer require nyholm/psr7". in wp-content/plugins/cashbene-payment-gateway/vendor/symfony/http-client/Psr18Client.php:36
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Intl\\DateFormatter\\DateFormat\\Transformer' not found in wp-content/plugins/cashbene-payment-gateway/vendor/symfony/intl/DateFormatter/DateFormat/MonthTransformer.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleReaderInterface' not found in wp-content/plugins/cashbene-payment-gateway/vendor/symfony/intl/Data/Bundle/Reader/BufferedBundleReader.php:21
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' not found in wp-content/plugins/cashbene-payment-gateway/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php:23
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Serializer\ormalizer\\AbstractNormalizer' not found in wp-content/plugins/cashbene-payment-gateway/vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:37
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Mime\\Encoder\\EncoderInterface' not found in wp-content/plugins/cashbene-payment-gateway/vendor/symfony/mime/Encoder/Base64Encoder.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\Exception\\RedirectionExceptionInterface' not found in wp-content/plugins/cashbene-payment-gateway/vendor/symfony/http-client/Exception/RedirectionException.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
- Requires php: Invalid plugin version format
cashbene-payment-gateway/cashbene-gateway.php 85% from 13 tests
"Cashbene Payment Gateway" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cashbene-payment-gateway.php" instead of "cashbene-gateway.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin401,712 lines of code in 1,857 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1,174 | 1 | 0 | 341,904 |
PHP | 623 | 8,997 | 20,266 | 57,931 |
Markdown | 31 | 369 | 0 | 1,110 |
YAML | 8 | 57 | 0 | 459 |
XML | 8 | 9 | 1 | 110 |
PO File | 1 | 27 | 27 | 78 |
XSD | 1 | 11 | 0 | 72 |
make | 1 | 7 | 0 | 28 |
Bourne Again Shell | 1 | 2 | 0 | 11 |
SVG | 4 | 0 | 0 | 4 |
HTML | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 9.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 224.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 99 | |
Interfaces | 94 | |
Traits | 13 | |
Classes | 467 | |
▷ Abstract classes | 34 | 7.28% |
▷ Concrete classes | 433 | 92.72% |
▷ Final classes | 124 | 28.64% |
Methods | 2,719 | |
▷ Static methods | 689 | 25.34% |
▷ Public methods | 2,261 | 83.16% |
▷ Protected methods | 142 | 5.22% |
▷ Private methods | 316 | 11.62% |
Functions | 245 | |
▷ Named functions | 144 | 58.78% |
▷ Anonymous functions | 101 | 41.22% |
Constants | 604 | |
▷ Global constants | 85 | 14.07% |
▷ Class constants | 519 | 85.93% |
▷ Public constants | 453 | 87.28% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/dist/images/content/no-image.png | 4.42KB | 4.30KB | ▼ 2.63% |