Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/kwik-framework/widgets/latest_posts.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; Kwik_Latest_Posts_Widget has a deprecated constructor
Server metrics [RAM: ▼1.53MB] [CPU: ▼58.30ms] Passed 4 tests
Server-side resources used by Kwik Framework
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.47 ▼1.00 | 8.09 ▼34.67 |
Dashboard /wp-admin | 2.49 ▼0.86 | 7.89 ▼61.14 |
Posts /wp-admin/edit.php | 2.49 ▼0.87 | 7.99 ▼41.35 |
Add New Post /wp-admin/post-new.php | 2.49 ▼3.40 | 7.95 ▼96.02 |
Media Library /wp-admin/upload.php | 2.49 ▼0.75 | 8.66 ▼25.90 |
Kwik Framework /wp-admin/options-general.php?page=kwik_framework | 2.49 | 8.01 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_latest-posts-widget |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Kwik Framework
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.35 ▼0.01 | 1.74 ▲0.02 | 47.53 ▼3.59 |
Dashboard /wp-admin | 2,219 ▲42 | 5.67 ▼0.01 | 87.10 ▼12.39 | 37.38 ▼7.83 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.03 ▲0.03 | 38.29 ▼0.16 | 36.58 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 22.93 ▼0.23 | 677.14 ▲4.37 | 53.40 ▼1.16 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.20 ▼0.00 | 102.09 ▼6.44 | 44.72 ▼1.80 |
Kwik Framework /wp-admin/options-general.php?page=kwik_framework | 699 | 1.51 | 7.09 | 23.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/kwik-framework/widgets/latest_posts.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; Kwik_Latest_Posts_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 8 options in the database
- recovery_mode_email_last_sent
- widget_recent-posts
- db_upgraded
- widget_latest-posts-widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=kwik_framework
- > Deprecated in wp-content/plugins/kwik-framework/widgets/latest_posts.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; Kwik_Latest_Posts_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=kwik_framework
- > Notice in wp-content/plugins/kwik-framework/inc/class.kwik-settings.php+168
Array to string conversion
- > GET request to /wp-admin/options-general.php?page=kwik_framework
- > Notice in wp-content/plugins/kwik-framework/inc/class.kwik-settings.php+168
Undefined property: KwikInputs::$Array
- > GET request to /wp-admin/options-general.php?page=kwik_framework
- > Notice in wp-content/plugins/kwik-framework/inc/class.kwik-settings.php+168
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=kwik_framework
- > Error in wp-content/plugins/kwik-framework/inc/class.kwik-settings.php+168
Uncaught Error: Function name must be a string in wp-content/plugins/kwik-framework/inc/class.kwik-settings.php:168
Stack trace:
#0 wp-content/plugins/kwik-framework/inc/class.kwik-settings.php(138): KwikSettings::settings_fields()
#1 wp-content/plugins/kwik-framework/inc/class.kwik-settings.php(102): KwikSettings::build_sections()
#2 wp-content/plugins/kwik-framework/inc/settings.php(25): KwikSettings::settings_sections()
#3 wp-includes/class-wp-hook.php(310): kwik_framework_settings()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#8 {main}
thrown
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
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/kwik-framework/kwik-framework.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kwik-framework/inc/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'KwikInputs' not found in wp-content/plugins/kwik-framework/inc/class.kwik-validate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function Kwik\\Ajax\\add_action() in wp-content/plugins/kwik-framework/inc/class.kwik-ajax.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kwik-framework/widgets/latest_posts.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: common, options, framework, widgets, settings
kwik-framework/kwik-framework.php Passed 13 tests
The primary PHP file in "Kwik Framework" version 0.5.7 is used by WordPress to initiate all plugin functionality
75 characters long description:
Reusable utilities and inputs to aid in WordPress theme and plugin creation
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
Good job! No executable or dangerous file extensions detected2,212 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 337 | 393 | 1,607 |
CSS | 3 | 11 | 14 | 478 |
JavaScript | 2 | 28 | 36 | 127 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 27 | 31.76% |
▷ Public methods | 73 | 85.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 14.12% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/child_link_active.png | 0.95KB | 0.14KB | ▼ 84.88% |
images/icons/clear.png | 1.75KB | 0.83KB | ▼ 52.23% |
images/icons/edit.png | 1.29KB | 0.83KB | ▼ 35.41% |
images/icons/work.png | 0.83KB | 0.69KB | ▼ 16.82% |
images/icons/link_box.png | 0.71KB | 0.73KB | 0.00% |