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.54MB] [CPU: ▼19.97ms] Passed 4 tests
Server-side resources used by Sync Dukan with WC
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 33.27 ▼2.73 |
Dashboard /wp-admin | 3.45 ▲0.10 | 43.35 ▼17.73 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 46.10 ▼2.22 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.56 | 34.99 ▼57.20 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.12 ▲5.85 |
Orders /wp-admin/admin.php?page=sync-dukan-orders | 3.31 | 30.98 |
Products /wp-admin/admin.php?page=sync-dukan-products | 3.31 | 31.01 |
Sync Dukan /wp-admin/admin.php?page=sync-dukan | 3.31 | 31.17 |
CRON Jobs /wp-admin/admin.php?page=sync-dukan-cron | 3.34 | 30.75 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
dukan_access_code |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Sync Dukan with WC
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 13.65 ▼1.03 | 4.37 ▲2.75 | 40.53 ▼0.75 |
Dashboard /wp-admin | 2,242 ▲54 | 4.86 ▼1.04 | 98.32 ▼7.83 | 39.28 ▼2.27 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.04 ▲0.02 | 35.35 ▼1.65 | 31.25 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,558 ▲39 | 23.18 ▲0.03 | 670.33 ▲2.45 | 46.62 ▲0.33 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.23 ▲0.08 | 107.86 ▲11.68 | 48.68 ▲6.49 |
Orders /wp-admin/admin.php?page=sync-dukan-orders | 694 | 1.16 | 8.00 | 14.64 |
Products /wp-admin/admin.php?page=sync-dukan-products | 694 | 1.55 | 7.13 | 20.94 |
Sync Dukan /wp-admin/admin.php?page=sync-dukan | 693 | 1.55 | 7.20 | 15.48 |
CRON Jobs /wp-admin/admin.php?page=sync-dukan-cron | 795 | 2.06 | 22.35 | 23.08 |
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 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- dukan_access_code
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sync-dukan-with-wc/views/status.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sync-dukan-with-wc/views/products.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sync-dukan-with-wc/views/connect_dukan.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sync-dukan-with-wc/views/orders.php:14
- > PHP Notice
Undefined variable: dukan_connection in wp-content/plugins/sync-dukan-with-wc/views/status.php on line 10
- > PHP Notice
Undefined variable: d_access_code in wp-content/plugins/sync-dukan-with-wc/views/status.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sync-dukan-with-wc/sync-dukan-with-wc.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were detected
sync-dukan-with-wc/sync-dukan-with-wc.php Passed 13 tests
This is the main PHP file of "Sync Dukan with WC" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
15 characters long description:
Syncs dukan.pk!
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
There were no executable files found in this plugin1,089 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 198 | 60 | 903 |
XML | 4 | 0 | 0 | 95 |
JavaScript | 1 | 17 | 5 | 91 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 68.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 were not PNG files found in your plugin