Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲3.71ms] Passed 4 tests
Server-side resources used by Katalys Merchant Sales Bridge
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.14 | 45.99 ▲4.39 |
Dashboard /wp-admin | 4.45 ▲1.15 | 48.51 ▼3.06 |
Posts /wp-admin/edit.php | 4.50 ▲1.15 | 55.04 ▲4.81 |
Add New Post /wp-admin/post-new.php | 6.98 ▲1.09 | 102.75 ▲8.70 |
Media Library /wp-admin/upload.php | 4.31 ▲1.08 | 45.32 ▲14.41 |
Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 212 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Katalys Merchant Sales Bridge
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.23 ▼0.48 | 1.72 ▲0.07 | 41.11 ▼10.08 |
Dashboard /wp-admin | 2,217 ▲43 | 5.74 ▲0.09 | 88.72 ▼7.94 | 76.09 ▲28.50 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.97 ▲0.02 | 39.14 ▲3.10 | 33.83 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 23.60 ▲0.66 | 719.41 ▲55.57 | 41.09 ▼15.32 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.11 ▼0.09 | 105.65 ▼4.41 | 67.94 ▲21.60 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 195× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Constant SODIUM_CRYPTO_KDF_CONTEXTBYTES already defined in wp-content/plugins/katalys-shop/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 38
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE\\ConstantTime\\Base64' not found in wp-content/plugins/katalys-shop/vendor/paragonie/constant_time_encoding/src/Base64UrlSafe.php:34
- > PHP Fatal error
Uncaught Error: Interface 'ParagonIE\\Paseto\\ValidationRuleInterface' not found in wp-content/plugins/katalys-shop/vendor/paragonie/paseto/src/Rules/IdentifiedBy.php:15
- > PHP Fatal error
Uncaught Error: Interface 'ParagonIE\\Paseto\\ValidationRuleInterface' not found in wp-content/plugins/katalys-shop/vendor/paragonie/paseto/src/Rules/IssuedBy.php:15
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Util' not found in wp-content/plugins/katalys-shop/vendor/paragonie/sodium_compat/src/Core32/Util.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519_Fe' not found in wp-content/plugins/katalys-shop/vendor/paragonie/sodium_compat/namespaced/Core/Curve25519/Fe.php:4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_SipHash' not found in wp-content/plugins/katalys-shop/vendor/paragonie/sodium_compat/namespaced/Core/SipHash.php:4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE\\Paseto\\Exception\\PasetoException' not found in wp-content/plugins/katalys-shop/vendor/paragonie/paseto/src/Exception/EncodingException.php:9
- > PHP Notice
Constant SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_MESSAGEBYTES_MAX already defined in wp-content/plugins/katalys-shop/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 83
- > PHP Notice
Constant SODIUM_CRYPTO_AEAD_AES256GCM_KEYBYTES already defined in wp-content/plugins/katalys-shop/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: shop, revoffers, embedded commerce, ecommerce, affiliate...
katalys-shop/katalys-shop.php Passed 13 tests
Analyzing the main PHP file in "Katalys Merchant Sales Bridge" version 1.1.15
95 characters long description:
Merchant bridge to allow automatic order fulfillment within Katalys + 1o Shop cart connections.
Code Analysis 97% from 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 plugin49,226 lines of code in 201 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 189 | 6,880 | 26,127 | 48,453 |
JSON | 8 | 0 | 0 | 750 |
SVG | 1 | 0 | 1 | 17 |
Bourne Shell | 1 | 2 | 0 | 3 |
CSS | 1 | 1 | 1 | 3 |
JavaScript | 1 | 0 | 1 | 0 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 33.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 634.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 6 | |
Traits | 1 | |
Classes | 162 | |
▷ Abstract classes | 32 | 19.75% |
▷ Concrete classes | 130 | 80.25% |
▷ Final classes | 4 | 3.08% |
Methods | 1,650 | |
▷ Static methods | 695 | 42.12% |
▷ Public methods | 1,577 | 95.58% |
▷ Protected methods | 61 | 3.70% |
▷ Private methods | 12 | 0.73% |
Functions | 201 | |
▷ Named functions | 184 | 91.54% |
▷ Anonymous functions | 17 | 8.46% |
Constants | 540 | |
▷ Global constants | 34 | 6.30% |
▷ Class constants | 506 | 93.70% |
▷ Public constants | 506 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected