Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼5.52ms] Passed 4 tests
Server-side resources used by Optty
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.38 ▼4.23 |
Dashboard /wp-admin | 3.55 ▲0.24 | 49.47 ▼10.54 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 55.07 ▼1.38 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 97.02 ▼5.78 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.24 ▼1.54 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 275 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Optty
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.11 ▼0.27 | 1.82 ▼0.27 | 42.52 ▼7.75 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.05 | 81.26 ▼16.43 | 40.30 ▼5.96 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▼0.01 | 40.45 ▲1.84 | 35.77 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,546 ▲1 | 23.30 ▲0.07 | 693.55 ▲13.57 | 54.02 ▼5.44 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.10 | 100.18 ▼10.21 | 42.44 ▼6.08 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 76× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/optty/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/optty/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/optty/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php:10
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/optty/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/optty/vendor/guzzlehttp/guzzle/src/Client.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/optty/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/optty/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/optty/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/optty/vendor/guzzlehttp/guzzle/src/Pool.php:24
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/optty/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
No tags were found
optty/optty.php Passed 13 tests
The principal PHP file in "Optty" v. 1.0.0 is loaded by WordPress automatically on each request
89 characters long description:
One platform integrating you to the world of Buy Now Pay Later Payment gateways globally.
Code Analysis Passed 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 detected22,392 lines of code in 256 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 210 | 3,104 | 8,958 | 16,452 |
Markdown | 17 | 1,255 | 0 | 3,797 |
JSON | 21 | 0 | 0 | 1,799 |
JavaScript | 3 | 35 | 1 | 244 |
CSS | 1 | 15 | 1 | 66 |
make | 2 | 12 | 0 | 27 |
YAML | 1 | 0 | 0 | 7 |
Sass | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 10.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 35 | |
Traits | 3 | |
Classes | 146 | |
▷ Abstract classes | 6 | 4.11% |
▷ Concrete classes | 140 | 95.89% |
▷ Final classes | 74 | 52.86% |
Methods | 1,148 | |
▷ Static methods | 315 | 27.44% |
▷ Public methods | 963 | 83.89% |
▷ Protected methods | 6 | 0.52% |
▷ Private methods | 179 | 15.59% |
Functions | 279 | |
▷ Named functions | 139 | 49.82% |
▷ Anonymous functions | 140 | 50.18% |
Constants | 121 | |
▷ Global constants | 9 | 7.44% |
▷ Class constants | 112 | 92.56% |
▷ Public constants | 88 | 78.57% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin