Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼2.25ms] Passed 4 tests
An overview of server-side resources used by Kinguin API for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 44.57 ▼0.53 |
Dashboard /wp-admin | 3.76 ▲0.46 | 51.08 ▼5.22 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 53.35 ▲2.16 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 93.17 ▼5.42 |
Media Library /wp-admin/upload.php | 3.68 ▲0.46 | 39.83 ▲5.72 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 431 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
plugin_activation_kinguin/kinguin.php |
can_compress_scripts |
Browser metrics Passed 4 tests
Kinguin API for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.08 | 2.05 ▼0.08 | 42.64 ▼9.44 |
Dashboard /wp-admin | 2,204 ▲13 | 5.81 ▼0.09 | 98.98 ▼2.51 | 39.88 ▼0.08 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.08 | 40.14 ▼0.61 | 37.32 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 17.57 ▼5.51 | 686.51 ▲0.34 | 60.71 ▼0.75 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.25 ▲0.10 | 94.63 ▼5.28 | 40.17 ▼1.52 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- plugin_activation_kinguin/kinguin.php
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/kinguin/vendor/wpdesk/wp-builder/tests/integration/bootstrap.php
- 133× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ILKinguinVendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/kinguin/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php:18
- > PHP Fatal error
Uncaught Error: Interface 'ILKinguinVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/kinguin/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php:11
- > PHP Fatal error
Uncaught Error: Interface 'ILKinguinVendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/kinguin/vendor_prefixed/monolog/monolog/src/Monolog/Processor/WebProcessor.php:18
- > PHP Fatal error
Uncaught Error: Class 'ILKinguinVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/kinguin/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php:19
- > PHP Fatal error
Uncaught Error: Interface 'ILKinguinVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/kinguin/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php:12
- > PHP Fatal error
Uncaught Error: Interface 'ILKinguinVendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/kinguin/vendor_prefixed/monolog/monolog/src/Monolog/Processor/UidProcessor.php:19
- > PHP Fatal error
Uncaught Error: Interface 'ILKinguinVendor\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/kinguin/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php:19
- > PHP Fatal error
Uncaught Error: Class 'ILKinguinVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/kinguin/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php:21
- > PHP Fatal error
Uncaught Error: Class 'ILKinguinVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/kinguin/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ILKinguinVendor\\WPDesk_Translatable' not found in wp-content/plugins/kinguin/vendor_prefixed/wpdesk/wp-builder/src/Plugin/SlimPlugin.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 (Main Interface.) image required
kinguin/kinguin.php Passed 13 tests
The main PHP script in "Kinguin API for WooCommerce" version 1.0.6 is automatically included on every request by WordPress
122 characters long description:
Import over 70,000 digital products to your online store, including video games, software, gift cards and in-game content.
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
No dangerous file extensions were detected24,882 lines of code in 412 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 347 | 1,993 | 10,797 | 18,006 |
CSS | 9 | 173 | 48 | 3,148 |
Sass | 13 | 155 | 13 | 1,619 |
JSON | 16 | 1 | 0 | 850 |
JavaScript | 9 | 88 | 37 | 512 |
PO File | 2 | 193 | 222 | 470 |
Markdown | 9 | 70 | 0 | 213 |
XML | 3 | 13 | 0 | 54 |
YAML | 1 | 1 | 0 | 7 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 51 | |
Interfaces | 45 | |
Traits | 14 | |
Classes | 247 | |
▷ Abstract classes | 13 | 5.26% |
▷ Concrete classes | 234 | 94.74% |
▷ Final classes | 1 | 0.43% |
Methods | 1,475 | |
▷ Static methods | 91 | 6.17% |
▷ Public methods | 1,112 | 75.39% |
▷ Protected methods | 161 | 10.92% |
▷ Private methods | 202 | 13.69% |
Functions | 102 | |
▷ Named functions | 30 | 29.41% |
▷ Anonymous functions | 72 | 70.59% |
Constants | 162 | |
▷ Global constants | 7 | 4.32% |
▷ Class constants | 155 | 95.68% |
▷ Public constants | 155 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo@2x.png | 4.17KB | 4.47KB | 0.00% |