Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼298.59ms] Passed 4 tests
Server-side resources used by KC Admin area Monitor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 75.11 ▲21.74 |
Dashboard /wp-admin | 3.44 ▲0.02 | 37.23 ▼12.87 |
Posts /wp-admin/edit.php | 3.67 ▲0.02 | 44.00 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.07 | 95.34 ▼1,177.98 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 27.02 ▼2.00 |
KC Admin Monitor /wp-admin/options-general.php?page=kc_admin_monitor | 3.29 | 30.45 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by KC Admin area Monitor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.22 ▲0.51 | 5.87 ▼0.60 | 2.48 ▲0.32 |
Dashboard /wp-admin | 2,894 ▲34 | 6.16 ▼0.11 | 133.93 ▲9.83 | 183.33 ▲19.46 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.23 ▼0.01 | 64.05 ▼23.41 | 137.01 ▼7.97 |
Add New Post /wp-admin/post-new.php | 1,722 ▲61 | 22.63 ▲1.16 | 392.59 ▼11.55 | 193.77 ▲38.00 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.51 ▼0.00 | 139.32 ▲1.48 | 247.17 ▲63.35 |
KC Admin Monitor /wp-admin/options-general.php?page=kc_admin_monitor | 1,027 | 2.41 | 56.07 | 101.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/kc-admin-area-monitor/kc-admin-monitor.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Screenshot #1 (Admin area) image missing
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
kc-admin-area-monitor/kc-admin-monitor.php 92% from 13 tests
The principal PHP file in "KC Admin area Monitor" v. 2016.06.02 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kc-admin-area-monitor.php" instead of "kc-admin-monitor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin69 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 15 | 69 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.92KB | 25.97KB | ▼ 48.99% |