Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.20ms] Passed 4 tests
Analyzing server-side resources used by Kiwys
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.25 ▼8.98 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.07 ▼2.15 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.73 ▲1.19 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.74 ▼10.87 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 39.79 ▲3.96 |
Server storage [IO: ▲2.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Kiwys
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.96 ▲0.41 | 1.72 ▼0.13 | 40.19 ▼3.43 |
Dashboard /wp-admin | 2,240 ▲63 | 6.94 ▲1.25 | 105.73 ▲13.76 | 40.27 ▼5.94 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 3.80 ▲1.76 | 49.40 ▲9.32 | 36.80 ▲0.83 |
Add New Post /wp-admin/post-new.php | 6,472 ▲5,103 | 26.51 ▲9.72 | 965.73 ▲362.51 | 41.57 ▼9.02 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 6.52 ▲2.29 | 116.45 ▲4.12 | 43.40 ▼4.38 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/kiwys/public/partials/kiwys-lite-public-display.php
- > /wp-content/plugins/kiwys/admin/partials/kiwys-lite-admin-display-no-website.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/kiwys/admin/partials/kiwys-lite-admin-display.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/kiwys/admin/partials/kiwys-lite-admin-display-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/kiwys/admin/partials/kiwys-lite-admin-display-login.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/kiwys/admin/partials/kiwys-lite-admin-display-website-state.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/kiwys/admin/partials/kiwys-lite-admin-display-header.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/kiwys/admin/partials/kiwys-lite-admin-display-metrics.php:1
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: Plugin contributors field is missing
kiwys/kiwys-lite.php 85% from 13 tests
Analyzing the main PHP file in "Kiwys" version 1.0.1
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kiwys.php" instead of "kiwys-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected820 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 151 | 593 | 759 |
CSS | 3 | 10 | 4 | 54 |
JavaScript | 3 | 4 | 58 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 31 | 75.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 24.39% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 1 | 6.67% |
▷ Class constants | 14 | 93.33% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/logo.png | 3.67KB | 0.96KB | ▼ 73.86% |