90% kolorweb-access-admin-notification

Code Review | KolorWeb Access Admin Notification: extreme rescue for unauthorized admin logins

WordPress plugin KolorWeb Access Admin Notification: extreme rescue for unauthorized admin logins scored90%from 54 tests.

About plugin

  • Plugin page: kolorweb-access-a...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2022
  • Latest release: Sep 2, 2023
  • Number of updates: 26
  • Update frequency: every 17.6 days
  • Top authors: vincent06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.21ms] Passed 4 tests

An overview of server-side resources used by KolorWeb Access Admin Notification: extreme rescue for unauthorized admin logins
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0734.45 ▼6.20
Dashboard /wp-admin3.38 ▲0.0743.05 ▼5.24
Posts /wp-admin/edit.php3.43 ▲0.0747.82 ▲2.11
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.20 ▼4.75
Media Library /wp-admin/upload.php3.30 ▲0.0732.58 ▼0.65

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for KolorWeb Access Admin Notification: extreme rescue for unauthorized admin logins
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.011.66 ▼0.2038.81 ▼4.56
Dashboard /wp-admin2,203 ▲125.83 ▲0.92106.90 ▲2.0938.96 ▼5.74
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0339.41 ▼2.6434.06 ▼2.96
Add New Post /wp-admin/post-new.php1,537 ▲923.18 ▲4.53634.16 ▼9.8054.65 ▼8.73
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0397.32 ▼3.8443.37 ▲0.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: track admin login, unauthorized admin logins, admin login notification, notify, notifications...

kolorweb-access-admin-notification/kw-access-admin-notification.php 92% from 13 tests

The main file in "KolorWeb Access Admin Notification: extreme rescue for unauthorized admin logins" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kolorweb-access-admin-notification.php" instead of "kw-access-admin-notification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin227 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP484148227

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity23.50
▷ Minimum class complexity20.00
▷ Maximum class complexity27.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected