Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'cg_install' not found or invalid function name
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.04ms] Passed 4 tests
A check of server-side resources used by YD Culqi gateway for AliDropship
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.58 ▼8.23 |
Dashboard /wp-admin | 3.32 ▲0.01 | 39.95 ▼12.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.24 ▼1.63 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.33 ▼9.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.77 ▼1.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by YD Culqi gateway for AliDropship
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.24 | 1.55 ▼0.48 | 42.82 ▲1.70 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.08 | 115.26 ▲10.62 | 41.69 ▼3.20 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.02 | 39.65 ▲1.71 | 39.00 ▲3.98 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.41 ▼4.66 | 607.40 ▼43.33 | 55.58 ▲9.33 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.03 | 98.81 ▼5.13 | 40.58 ▼5.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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 | 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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/yd-culqi-gateway-for-alidropship/yd-culqi-gateway-for-alidropship.php:15
- > PHP Fatal error
Uncaught Error: Class 'Gate\\Common\\Gateway' not found in wp-content/plugins/yd-culqi-gateway-for-alidropship/includes/Culqi/Checkout.php:15
- > PHP Fatal error
Uncaught Error: Class 'Gate\\Common\\Request' not found in wp-content/plugins/yd-culqi-gateway-for-alidropship/includes/Culqi/Message/PurchaseRequest.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/yd-culqi-gateway-for-alidropship/core/init.php:53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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 need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Settings), #2 (Enable Culqi), #3 (Public Key and App Key), #4 (Shop name and Shop description), #5 (Currency select)
yd-culqi-gateway-for-alidropship/yd-culqi-gateway-for-alidropship.php 92% from 13 tests
This is the main PHP file of "YD Culqi gateway for AliDropship" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin387 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 125 | 83 | 387 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin