Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼6.76ms] Passed 4 tests
This is a short check of server-side resources used by Hyyan WooCommerce Polylang Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 44.44 ▲2.59 |
Dashboard /wp-admin | 3.60 ▲0.25 | 54.10 ▼15.50 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 51.34 ▼3.30 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 94.66 ▼10.82 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 42.49 ▲4.65 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
hyyan-wpi-flash-messages |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Hyyan WooCommerce Polylang Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.35 ▲0.20 | 1.71 ▼0.14 | 43.47 ▲2.64 |
Dashboard /wp-admin | 2,224 ▲50 | 5.63 ▼0.03 | 93.25 ▼2.62 | 45.22 ▲1.80 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.01 ▲0.06 | 37.87 ▼3.20 | 36.38 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,555 ▲25 | 23.15 ▲0.14 | 664.03 ▼32.21 | 51.97 ▼20.27 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.22 ▼0.02 | 100.76 ▼10.10 | 50.14 ▲0.98 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- hyyan-wpi-flash-messages
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
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 items
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/Admin/getHelp.php
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/Admin/about.php
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/Messages/activateError.php
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/admin.php
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/Messages/support.php
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/social.php
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/Admin/support.php
- > /wp-content/plugins/woo-poly-integration/__init__.php
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/Messages/endpointsTranslations.php
- > /wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Views/badges.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_COD' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Gateways/GatewayCOD.php:22
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_BACS' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Gateways/GatewayBACS.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Admin/StatusReport.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Hyyan\\WPI\\Taxonomies\\TaxonomiesInterface' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Taxonomies/ShippingCalss.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Hyyan\\WPI\\Taxonomies\\TaxonomiesInterface' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Taxonomies/Tags.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Hyyan\\WPI\\Taxonomies\\TaxonomiesInterface' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Taxonomies/Attributes.php:20
- > PHP Fatal error
Uncaught Error: Class 'Hyyan\\WPI\\Admin\\AbstractSettings' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Admin/Features.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Hyyan\\WPI\\Admin\\SettingsInterface' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Admin/AbstractSettings.php:21
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Cheque' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Gateways/GatewayCheque.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Hyyan\\WPI\\Taxonomies\\TaxonomiesInterface' not found in wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Taxonomies/Categories.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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:
- Tags: You are using too many tags: 11 tag instead of maximum 10
woo-poly-integration/__init__.php 92% from 13 tests
The entry point to "Hyyan WooCommerce Polylang Integration" version 1.5.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-poly-integration.php" instead of "__init__.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,896 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 1,042 | 3,450 | 5,407 |
PO File | 2 | 267 | 406 | 845 |
Markdown | 2 | 134 | 0 | 375 |
JavaScript | 4 | 54 | 73 | 237 |
JSON | 1 | 0 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 19.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 1 | 2.27% |
▷ Concrete classes | 43 | 97.73% |
▷ Final classes | 3 | 6.98% |
Methods | 303 | |
▷ Static methods | 71 | 23.43% |
▷ Public methods | 281 | 92.74% |
▷ Protected methods | 16 | 5.28% |
▷ Private methods | 6 | 1.98% |
Functions | 14 | |
▷ Named functions | 2 | 14.29% |
▷ Anonymous functions | 12 | 85.71% |
Constants | 33 | |
▷ Global constants | 2 | 6.06% |
▷ Class constants | 31 | 93.94% |
▷ Public constants | 31 | 100.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 are no PNG files in this plugin