Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲5.45MB] [CPU: ▲32.53ms] 75% from 4 tests
Analyzing server-side resources used by Kenta Companion
Please take the time to fix the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.45MB on /wp-admin/admin.php?page=kenta-companion)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.20 ▲5.74 | 73.76 ▲35.32 |
Dashboard /wp-admin | 9.22 ▲5.91 | 81.40 ▲33.64 |
Posts /wp-admin/edit.php | 9.22 ▲5.86 | 82.15 ▲32.16 |
Add New Post /wp-admin/post-new.php | 10.16 ▲4.27 | 123.86 ▲32.52 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 65.01 ▲31.81 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.22 | 70.18 |
Contact Us /wp-admin/admin.php?page=kenta-companion-contact | 9.22 | 56.75 |
Opt In /wp-admin/admin.php?page=kenta-companion-optin | 9.22 | 62.43 |
Support Forum /wp-admin/admin.php?page=kenta-companion-wp-support-forum | 9.22 | 53.31 |
Upgrade ➤ /wp-admin/admin.php?page=kenta-companion-pricing | 9.22 | 63.73 |
Kenta /wp-admin/admin.php?page=kenta-companion | 9.22 | 55.30 |
Server storage [IO: ▲4.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 395 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
db_upgraded |
fs_active_plugins |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
fs_accounts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Kenta Companion: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲102 | 14.39 ▼0.01 | 1.72 ▲0.11 | 31.49 ▼10.49 |
Dashboard /wp-admin | 2,254 ▲80 | 5.59 ▼0.01 | 89.55 ▲3.77 | 78.26 ▲34.75 |
Posts /wp-admin/edit.php | 2,175 ▲75 | 2.05 ▲0.03 | 35.13 ▼8.04 | 39.03 ▼5.82 |
Add New Post /wp-admin/post-new.php | 1,669 ▲143 | 23.64 ▲0.49 | 626.28 ▼10.95 | 113.99 ▲53.51 |
Media Library /wp-admin/upload.php | 1,465 ▲65 | 4.20 ▼0.06 | 94.87 ▼9.98 | 76.97 ▲33.24 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,115 | 1.71 | 24.26 | 27.06 |
Contact Us /wp-admin/admin.php?page=kenta-companion-contact | 1,591 | 3.09 | 53.89 | 50.09 |
Opt In /wp-admin/admin.php?page=kenta-companion-optin | 1,028 | 1.70 | 24.99 | 66.87 |
Support Forum /wp-admin/admin.php?page=kenta-companion-wp-support-forum | 1,385 | 3.91 | 85.60 | 70.03 |
Upgrade ➤ /wp-admin/admin.php?page=kenta-companion-pricing | 1,921 | 3.31 | 60.39 | 88.46 |
Kenta /wp-admin/admin.php?page=kenta-companion | 934 | 6.20 | 145.02 | 36.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/kenta-companion/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- fs_debug_mode
- fs_accounts
- widget_recent-posts
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/kenta-companion/src/DemoImporter/CustomizerOption.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Cookie\\Factory' not found in wp-content/plugins/kenta-companion/vendor/illuminate/contracts/Cookie/QueueingFactory.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Pagination\\Paginator' not found in wp-content/plugins/kenta-companion/vendor/illuminate/contracts/Pagination/LengthAwarePaginator.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\MessageProvider' not found in wp-content/plugins/kenta-companion/vendor/illuminate/contracts/Validation/Validator.php:7
- > PHP Fatal error
Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/kenta-companion/vendor/proteusthemes/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/kenta-companion/src/Container/EntryNotFoundException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/kenta-companion/vendor/illuminate/contracts/Container/Container.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheException' not found in wp-content/plugins/kenta-companion/vendor/psr/simple-cache/src/InvalidArgumentException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Container\\Container' not found in wp-content/plugins/kenta-companion/src/Container/Container.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/kenta-companion/vendor/illuminate/contracts/Support/MessageBag.php:5
- > 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, but this is not an exhaustive test
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
2 plugin tags: widgets, widget
kenta-companion/kenta-companion.php Passed 13 tests
"Kenta Companion" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
124 characters long description:
Kenta Companion is an extension to the Kenta theme. It provides a lot of features and one-click demo import for Kenta Theme.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin49,353 lines of code in 334 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 292 | 10,405 | 23,673 | 41,365 |
JavaScript | 10 | 1,607 | 1,367 | 6,644 |
CSS | 18 | 39 | 12 | 885 |
JSON | 6 | 0 | 0 | 372 |
Markdown | 6 | 28 | 0 | 70 |
XML | 1 | 3 | 0 | 16 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 28.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 91 | |
Traits | 0 | |
Classes | 111 | |
▷ Abstract classes | 2 | 1.80% |
▷ Concrete classes | 109 | 98.20% |
▷ Final classes | 1 | 0.92% |
Methods | 2,066 | |
▷ Static methods | 255 | 12.34% |
▷ Public methods | 1,584 | 76.67% |
▷ Protected methods | 90 | 4.36% |
▷ Private methods | 392 | 18.97% |
Functions | 139 | |
▷ Named functions | 122 | 87.77% |
▷ Anonymous functions | 17 | 12.23% |
Constants | 166 | |
▷ Global constants | 110 | 66.27% |
▷ Class constants | 56 | 33.73% |
▷ Public constants | 56 | 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
8 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/archive-masonry.png | 0.92KB | 0.13KB | ▼ 85.93% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/kenta-companion.png | 3.94KB | 1.96KB | ▼ 50.21% |
assets/images/archive-grid.png | 0.99KB | 0.15KB | ▼ 84.46% |
assets/images/kenta-logo-color.png | 21.88KB | 6.44KB | ▼ 70.55% |