Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼37.86ms] Passed 4 tests
A check of server-side resources used by WP Configuration and Status
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.89 ▲5.22 |
Dashboard /wp-admin | 3.01 ▼0.30 | 24.47 ▼26.25 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 28.02 ▼24.63 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 25.11 ▼84.93 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 23.24 ▼15.64 |
WP Configuration and Status /wp-admin/options-general.php?page=klick_cs | 3.01 | 23.69 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
klick-cs-logging |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Configuration and Status
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 13.36 ▼1.29 | 9.68 ▲7.72 | 45.70 ▲0.82 |
Dashboard /wp-admin | 2,208 ▲28 | 5.60 ▼0.05 | 91.42 ▼0.70 | 40.27 ▼3.18 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.04 | 38.44 ▼1.74 | 33.65 ▼4.23 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.73 ▲0.59 | 728.81 ▲18.48 | 63.47 ▲6.30 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.19 ▼0.02 | 97.26 ▼22.33 | 43.90 ▼3.43 |
WP Configuration and Status /wp-admin/options-general.php?page=klick_cs | 1,545 | 2.00 | 27.66 | 30.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=klick_cs
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
Please fix the following
- 14× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-configuration-and-status/includes/class-klick-cs-commands.php
- > /wp-content/plugins/wp-configuration-and-status/templates/notices-templates/horizontal-notice.php
- > /wp-content/plugins/wp-configuration-and-status/wp_configuration_and_staus.php
- > /wp-content/plugins/wp-configuration-and-status/includes/class-klick-cs-dashboard.php
- > /wp-content/plugins/wp-configuration-and-status/includes/class-klick-cs-email-logger.php
- > /wp-content/plugins/wp-configuration-and-status/includes/class-klick-cs-logger.php
- > /wp-content/plugins/wp-configuration-and-status/includes/class-klick-cs-options.php
- > /wp-content/plugins/wp-configuration-and-status/includes/class-klick-cs-php-logger.php
- > /wp-content/plugins/wp-configuration-and-status/includes/class-klick-cs-abstract-logger.php
- > /wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-change-log.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function file_read() on null in wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-htaccess.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function file_read() on null in wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-wp-config.php:7
- > PHP Notice
Undefined variable: options in wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-wp-config.php on line 7
- > PHP Notice
Undefined variable: options in wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-htaccess.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function file_read() on null in wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-php-info.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-our-other-plugins.php:3
- > PHP Warning
Use of undefined constant KLICK_CS_PLUGIN_URL - assumed 'KLICK_CS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-our-other-plugins.php on line 3
- > PHP Notice
Undefined variable: options in wp-content/plugins/wp-configuration-and-status/templates/klick-cs-tab-php-info.php on line 7
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (php.info Tab), #2 (.htaccess Tab), #3 (wp-config.php Tab)
wp-configuration-and-status/wp_configuration_and_staus.php 85% from 13 tests
The principal PHP file in "WP Configuration and Status" v. 0.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-configuration-and-status.php" instead of "wp_configuration_and_staus.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,747 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 288 | 480 | 804 |
SVG | 11 | 0 | 11 | 521 |
CSS | 6 | 18 | 11 | 304 |
JavaScript | 4 | 17 | 58 | 71 |
Markdown | 1 | 27 | 0 | 47 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 5 | 7.04% |
▷ Public methods | 70 | 98.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.41% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notices/cs_sample_notice_icon2.png | 9.63KB | 4.69KB | ▼ 51.23% |
images/small_icon.png | 18.12KB | 0.45KB | ▼ 97.52% |
images/sa-banner.png | 70.36KB | 25.74KB | ▼ 63.41% |
images/klick-on-it.png | 6.51KB | 4.02KB | ▼ 38.23% |
images/notices/cs_sample_notice_icon3.png | 30.17KB | 6.04KB | ▼ 79.98% |