Benchmarks
Plugin footprint 82% 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.07MB] [CPU: ▼5.73ms] Passed 4 tests
A check of server-side resources used by Payzito ( پِی زیتو )
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.68 ▼2.94 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.21 ▼7.34 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 45.07 ▼0.74 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 78.28 ▼11.89 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 47.28 ▲13.85 |
Dashboard /wp-admin/admin.php?page=payzito-panel | 3.74 | 37.61 |
Offers /wp-admin/admin.php?page=payzito-offers | 3.35 | 31.12 |
Transactions /wp-admin/admin.php?page=payzito-transactions | 3.35 | 31.37 |
Forms & Links /wp-admin/admin.php?page=payzito-forms | 3.35 | 30.61 |
Users /wp-admin/admin.php?page=payzito-members | 3.35 | 31.76 |
Add-ons /wp-admin/admin.php?page=payzito-plugins | 3.35 | 31.14 |
Messages /wp-admin/admin.php?page=payzito-messages | 3.35 | 32.54 |
Settings /wp-admin/admin.php?page=payzito-configuration | 3.35 | 29.50 |
Report /wp-admin/admin.php?page=payzito-reports | 3.35 | 30.61 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- The plugin illegally modified 2 files (9.12KB) outside of "wp-content/plugins/payzito/" and "wp-content/uploads/"
- (new file) wp-content/languages/plugins/payzito-en_GB.mo
- (new file) wp-content/languages/plugins/payzito-en_GB.po
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payzito ( پِی زیتو )
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲93 | 13.33 ▼1.05 | 4.15 ▲2.11 | 41.64 ▼6.49 |
Dashboard /wp-admin | 2,256 ▲65 | 5.89 ▼0.00 | 101.14 ▼7.23 | 75.51 ▲29.90 |
Posts /wp-admin/edit.php | 2,142 ▲56 | 2.01 ▲0.02 | 35.17 ▼0.35 | 35.46 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,708 ▲175 | 22.50 ▼0.61 | 698.54 ▲24.24 | 51.13 ▼0.77 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.18 ▼0.03 | 104.11 ▲9.46 | 71.43 ▲28.83 |
Dashboard /wp-admin/admin.php?page=payzito-panel | 2,440 | 7.10 | 192.81 | 230.06 |
Offers /wp-admin/admin.php?page=payzito-offers | 3,879 | 8.11 | 212.91 | 127.95 |
Transactions /wp-admin/admin.php?page=payzito-transactions | 3,226 | 8.40 | 207.83 | 125.66 |
Forms & Links /wp-admin/admin.php?page=payzito-forms | 3,390 | 7.75 | 209.62 | 125.78 |
Users /wp-admin/admin.php?page=payzito-members | 3,894 | 8.03 | 203.18 | 126.26 |
Add-ons /wp-admin/admin.php?page=payzito-plugins | 3,670 | 7.95 | 192.23 | 127.27 |
Messages /wp-admin/admin.php?page=payzito-messages | 3,838 | 8.06 | 214.08 | 133.28 |
Settings /wp-admin/admin.php?page=payzito-configuration | 3,950 | 8.15 | 206.95 | 127.12 |
Report /wp-admin/admin.php?page=payzito-reports | 3,448 | 7.74 | 190.17 | 122.76 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/payzito/repository/libraries/controller.php
- > /wp-content/plugins/payzito/repository/views/panel.php
- > /wp-content/plugins/payzito/repository/setup/cms/wordpress/setup.php
- > /wp-content/plugins/payzito/repository/libraries/helper.php
- > /wp-content/plugins/payzito/repository/libraries/jdate.php
- > /wp-content/plugins/payzito/repository/setup/temp.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Loader\\Loader' not found in wp-content/plugins/payzito/repository/libraries/mo-creator/Loader/StrictPoLoader.php:13
- > PHP Fatal error
Uncaught Error: Class 'payzitoRepository\\libraries\\controller' not found in wp-content/plugins/payzito/repository/controllers/panel.php:8
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Generator\\Generator' not found in wp-content/plugins/payzito/repository/libraries/mo-creator/Generator/PoGenerator.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Gettext\\Generator\\GeneratorInterface' not found in wp-content/plugins/payzito/repository/libraries/mo-creator/Generator/Generator.php:8
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Loader\\Loader' not found in wp-content/plugins/payzito/repository/libraries/mo-creator/Loader/PoLoader.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Gettext\\Loader\\LoaderInterface' not found in wp-content/plugins/payzito/repository/libraries/mo-creator/Loader/Loader.php:13
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Loader\\Loader' not found in wp-content/plugins/payzito/repository/libraries/mo-creator/Loader/MoLoader.php:12
- > PHP Fatal error
Uncaught Error: Class 'PASetupParent' not found in wp-content/plugins/payzito/repository/setup/setup.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/payzito/payzito.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Gettext\\Scanner\\ScannerInterface' not found in wp-content/plugins/payzito/repository/libraries/mo-creator/Scanner/Scanner.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=payzito-offers
- > Network (warning)
https://cdn.goftino.com/static/socket.io.js 7 WebSocket connection to 'wss://ws.goftino.com/socket.io/?EIO=3&transport=websocket' failed: WebSocket is closed before the connection is established.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
payzito/payzito.php 92% from 13 tests
The entry point to "Payzito ( پِی زیتو )" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please use more than 10 characters for the plugin description (currently 7 characters long)
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin5,298 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,090 | 240 | 5,023 |
INI | 2 | 0 | 0 | 159 |
SVG | 1 | 0 | 0 | 68 |
JSON | 1 | 0 | 0 | 39 |
JavaScript | 5 | 0 | 1 | 5 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 26.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 27 | |
▷ Abstract classes | 4 | 14.81% |
▷ Concrete classes | 23 | 85.19% |
▷ Final classes | 7 | 30.43% |
Methods | 412 | |
▷ Static methods | 191 | 46.36% |
▷ Public methods | 344 | 83.50% |
▷ Protected methods | 35 | 8.50% |
▷ Private methods | 33 | 8.01% |
Functions | 12 | |
▷ Named functions | 3 | 25.00% |
▷ Anonymous functions | 9 | 75.00% |
Constants | 27 | |
▷ Global constants | 4 | 14.81% |
▷ Class constants | 23 | 85.19% |
▷ Public constants | 20 | 86.96% |
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
8 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
repository/assets/images/ok.png | 0.54KB | 0.31KB | ▼ 42.11% |
repository/assets/images/close.png | 4.55KB | 1.63KB | ▼ 64.11% |
repository/assets/images/logo/02.png | 13.15KB | 0.68KB | ▼ 94.85% |
repository/assets/images/menus/payzito.png | 13.15KB | 0.68KB | ▼ 94.85% |
repository/assets/images/logo/01.png | 11.13KB | 2.21KB | ▼ 80.13% |