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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼13.46ms] Passed 4 tests
A check of server-side resources used by Pacific Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.68 ▼7.37 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.04 ▼20.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.35 ▼4.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.34 ▼21.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.60 ▼0.59 |
Server storage [IO: ▲18.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2,020 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Pacific Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.28 ▼0.97 | 4.29 ▲2.49 | 41.41 ▼2.90 |
Dashboard /wp-admin | 2,200 ▲15 | 5.83 ▼0.10 | 102.02 ▲0.67 | 41.63 ▲0.20 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 34.50 ▼4.63 | 33.85 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 18.12 ▼5.09 | 657.26 ▼35.51 | 52.64 ▼13.34 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.04 | 95.97 ▼6.61 | 42.41 ▼2.01 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pacific-payment-gateway/vendor/pacific/core/tests/test.php
- > /wp-content/plugins/pacific-payment-gateway/vendor/symfony/mime/Resources/bin/update_mime_types.php
- > /wp-content/plugins/pacific-payment-gateway/vendor/symfony/intl/Resources/bin/update-data.php
- 369× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\TagWithType' not found in wp-content/plugins/pacific-payment-gateway/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Serializer\ormalizer\ormalizerInterface' not found in wp-content/plugins/pacific-payment-gateway/vendor/symfony/serializer/Normalizer/ProblemNormalizer.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/pacific-payment-gateway/vendor/psr/container/src/NotFoundExceptionInterface.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Pacific\\Core\\Utils\\ContextInterface' not found in wp-content/plugins/pacific-payment-gateway/vendor/pacific/core/src/Api/Context.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpClient\\Chunk\\DataChunk' not found in wp-content/plugins/pacific-payment-gateway/vendor/symfony/http-client/Chunk/InformationalChunk.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pacific-payment-gateway/templates/admin/select_input.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Serializer\\Exception\\ExceptionInterface' not found in wp-content/plugins/pacific-payment-gateway/vendor/symfony/serializer/Exception/LogicException.php:19
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/pacific-payment-gateway/src/app/Component/PacificInpostShipmentMethod.php:9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Intl\\DateFormatter\\DateFormat\\Transformer' not found in wp-content/plugins/pacific-payment-gateway/vendor/symfony/intl/DateFormatter/DateFormat/SecondTransformer.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pacific-payment-gateway/templates/admin/text_input.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
pacific-payment-gateway/pacific-gateway.php 85% from 13 tests
This is the main PHP file of "Pacific Payment Gateway" version 1.0.23, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pacific-payment-gateway.php" instead of "pacific-gateway.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected401,336 lines of code in 1,857 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1,174 | 1 | 0 | 341,904 |
PHP | 622 | 8,907 | 20,290 | 57,554 |
Markdown | 31 | 368 | 0 | 1,110 |
YAML | 8 | 57 | 0 | 459 |
XML | 8 | 9 | 1 | 110 |
PO File | 1 | 25 | 29 | 72 |
XSD | 1 | 11 | 0 | 72 |
make | 1 | 7 | 0 | 28 |
Bourne Again Shell | 1 | 2 | 0 | 11 |
SVG | 5 | 0 | 0 | 11 |
HTML | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 9.39 |
▷ 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 | 466 | |
▷ Abstract classes | 34 | 7.30% |
▷ Concrete classes | 432 | 92.70% |
▷ Final classes | 124 | 28.70% |
Methods | 2,698 | |
▷ Static methods | 681 | 25.24% |
▷ Public methods | 2,242 | 83.10% |
▷ Protected methods | 142 | 5.26% |
▷ Private methods | 314 | 11.64% |
Functions | 245 | |
▷ Named functions | 144 | 58.78% |
▷ Anonymous functions | 101 | 41.22% |
Constants | 600 | |
▷ Global constants | 85 | 14.17% |
▷ Class constants | 515 | 85.83% |
▷ Public constants | 450 | 87.38% |
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 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% |