93% kc-admin-area-monitor

Code Review | KC Admin area Monitor

WordPress plugin KC Admin area Monitor scored 93% from 54 tests.

About plugin

  • Plugin page: kc-admin-area-mon...
  • Plugin version: 2016.06.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.4
  • WordPress version: 5.9.2
  • First release: Oct 22, 2016
  • Latest release: Oct 23, 2019
  • Number of updates: 4
  • Update frequency: every 273.8 days
  • Top authors: krumch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 456 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0375.11 ▲21.74
Dashboard /wp-admin3.44 ▲0.0237.23 ▼12.87
Posts /wp-admin/edit.php3.67 ▲0.0244.00 ▼1.49
Add New Post /wp-admin/post-new.php6.91 ▼0.0795.34 ▼1,177.98
Media Library /wp-admin/upload.php3.32 ▲0.0227.02 ▼2.00
KC Admin Monitor /wp-admin/options-general.php?page=kc_admin_monitor3.2930.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.22 ▲0.515.87 ▼0.602.48 ▲0.32
Dashboard /wp-admin2,894 ▲346.16 ▼0.11133.93 ▲9.83183.33 ▲19.46
Posts /wp-admin/edit.php2,696 ▲83.23 ▼0.0164.05 ▼23.41137.01 ▼7.97
Add New Post /wp-admin/post-new.php1,722 ▲6122.63 ▲1.16392.59 ▼11.55193.77 ▲38.00
Media Library /wp-admin/upload.php1,703 ▲85.51 ▼0.00139.32 ▲1.48247.17 ▲63.35
KC Admin Monitor /wp-admin/options-general.php?page=kc_admin_monitor1,0272.4156.07101.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP191569

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 code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png50.92KB25.97KB▼ 48.99%