Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▲2.54ms] Passed 4 tests
This is a short check of server-side resources used by Kashing Payments for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 42.95 ▲0.75 |
Dashboard /wp-admin | 3.69 ▲0.38 | 53.74 ▲7.76 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 57.65 ▲10.21 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 90.22 ▼8.49 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 43.53 ▲10.14 |
Add New Form /wp-admin/post-new.php?post_type=kashing | 3.59 | 50.46 |
View Forms /wp-admin/edit.php?post_type=kashing | 3.58 | 40.03 |
Settings /wp-admin/edit.php?post_type=kashing&page=kashing-settings | 3.51 | 34.88 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
kashing |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Kashing Payments for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲217 | 13.93 ▼0.66 | 8.74 ▲6.92 | 41.87 ▼9.72 |
Dashboard /wp-admin | 2,244 ▲59 | 5.87 ▼0.16 | 98.67 ▼0.89 | 40.76 ▼3.03 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.04 ▼0.01 | 42.01 ▲1.23 | 37.28 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,550 ▲13 | 23.25 ▲4.91 | 660.76 ▲13.74 | 49.95 ▲0.41 |
Media Library /wp-admin/upload.php | 1,429 ▲38 | 4.17 ▼0.02 | 101.16 ▲2.86 | 43.04 ▼2.16 |
Add New Form /wp-admin/post-new.php?post_type=kashing | 1,531 | 2.52 | 50.88 | 53.29 |
View Forms /wp-admin/edit.php?post_type=kashing | 1,109 | 1.98 | 31.90 | 30.99 |
Settings /wp-admin/edit.php?post_type=kashing&page=kashing-settings | 891 | 1.84 | 24.97 | 24.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- kashing
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(KASHING_PATHinc/shortcodes/kashing-form.php): failed to open stream: No such file or directory in wp-content/plugins/kashing/inc/class.kashing-shortcodes.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'Kashing_Payments' not found in wp-content/plugins/kashing/trunk/inc/class.kashing-settings.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/kashing/inc/helpers/currency/currency-misc/currency-list.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/kashing/inc/shortcodes/kashing-form.php:190
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kashing/inc/class.kashing-post-type.php:17
- > PHP Fatal error
require_once(): Failed opening required 'KASHING_PATHinc/class.kashing-metabox.php' (include_path='.:/usr/share/php') in wp-content/plugins/kashing/trunk/inc/class.kashing-metaboxes.php on line 3
- > PHP Warning
Use of undefined constant KASHING_PATH - assumed 'KASHING_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kashing/trunk/inc/class.kashing-metaboxes.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'KASHING_PATHinc/class.kashing-metabox.php' (include_path='.:/usr/share/php') in wp-content/plugins/kashing/inc/class.kashing-metaboxes.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kashing/trunk/inc/class.kashing-api.php:61
- > PHP Warning
Use of undefined constant KASHING_PATH - assumed 'KASHING_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kashing/inc/class.kashing-shortcodes.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: payment gateway, payment technology, smart payment, kashing, kashing payments
kashing/index.php 92% from 13 tests
The main file in "Kashing Payments for WordPress" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kashing.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,288 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 800 | 584 | 1,892 |
JavaScript | 2 | 69 | 36 | 257 |
CSS | 2 | 51 | 15 | 139 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 104 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin