Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.54ms] Passed 4 tests
This is a short check of server-side resources used by Kama Click Counter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.62 ▼2.95 |
Dashboard /wp-admin | 3.35 ▲0.00 | 49.02 ▼17.44 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.80 ▼3.39 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.91 ▼10.39 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.09 ▲1.74 |
Kama Click Counter /wp-admin/options-general.php?page=kama-clic-counter | 3.47 | 29.57 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 68 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_kcc_clicks |
New WordPress options |
---|
widget_recent-comments |
widget_kcc_widget |
widget_theysaidso_widget |
db_upgraded |
kcc_version |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
kcc_options |
Browser metrics Passed 4 tests
Kama Click Counter: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.65 ▼0.94 | 1.86 ▼0.23 | 39.81 ▼6.63 |
Dashboard /wp-admin | 2,234 ▲31 | 4.85 ▼0.05 | 108.07 ▲4.78 | 38.32 ▼5.92 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 1.98 ▼0.08 | 39.05 ▼1.12 | 36.51 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 17.78 ▲0.08 | 693.62 ▲12.19 | 54.39 ▲2.75 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.23 ▲0.00 | 103.42 ▲1.78 | 46.42 ▼0.56 |
Kama Click Counter /wp-admin/options-general.php?page=kama-clic-counter | 892 | 2.02 | 26.62 | 33.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=kama-clic-counter
- > Notice in wp-content/plugins/kama-clic-counter/admin/options-page.php+23
Undefined property: KCCounter_Admin::$msg
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kama-clic-counter
- > Notice in wp-content/plugins/kama-clic-counter/admin/options-page.php+418
Undefined index: subpage
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kama-clic-counter
- > Notice in wp-content/plugins/kama-clic-counter/admin/options-page.php+416
Undefined index: edit_link
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kama-clic-counter
- > Notice in wp-content/plugins/kama-clic-counter/admin/options-page.php+319
Undefined index: order_by
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kama-clic-counter/_backward-compatibility.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kama-clic-counter/widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_option() in wp-content/plugins/kama-clic-counter/admin/mce/mce.php:6
- > PHP Fatal error
Uncaught Error: Class 'KCCounter' not found in wp-content/plugins/kama-clic-counter/class-KCCounter_Admin.php:4
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== kama-clic-counter ===
)
kama-clic-counter/kama_click_counter.php 77% from 13 tests
The main file in "Kama Click Counter" v. 3.6.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kama-clic-counter.php" instead of "kama_click_counter.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Description: Please keep the plugin description shorter than 140 characters (currently 180 characters long)
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
There were no executable files found in this plugin4,567 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 518 | 547 | 4,481 |
JavaScript | 1 | 33 | 13 | 86 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 5.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 2 | 33.33% |
Methods | 75 | |
▷ Static methods | 9 | 12.00% |
▷ Public methods | 58 | 77.33% |
▷ Protected methods | 17 | 22.67% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 13 | |
▷ Global constants | 4 | 30.77% |
▷ Class constants | 9 | 69.23% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
55 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/gz.png | 1.27KB | 1.35KB | 0.00% |
icons/sys.png | 1.53KB | 1.66KB | 0.00% |
icons/asf.png | 1.42KB | 1.53KB | 0.00% |
icons/mov.png | 1.69KB | 1.90KB | 0.00% |
icons/mp3.png | 1.45KB | 1.64KB | 0.00% |