84% http-authentication-by-kimofy

Code Review | HTTP Authentication By KIMoFy

WordPress plugin HTTP Authentication By KIMoFy scored84%from 54 tests.

About plugin

  • Plugin page: http-authenticati...
  • Plugin version: 5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Feb 14, 2017
  • Latest release: Jun 12, 2017
  • Number of updates: 14
  • Update frequency: every 8.4 days
  • Top authors: kimofy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,526 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.02ms] Passed 4 tests

A check of server-side resources used by HTTP Authentication By KIMoFy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.08 ▼9.10
Dashboard /wp-admin3.32 ▼0.0248.36 ▼19.24
Posts /wp-admin/edit.php3.38 ▲0.0253.31 ▼1.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.45 ▼15.01
Media Library /wp-admin/upload.php3.25 ▲0.0234.43 ▼4.72

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

HTTP Authentication By KIMoFy: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.24 ▼0.321.77 ▼0.1840.42 ▲1.22
Dashboard /wp-admin2,214 ▲345.65 ▼0.0093.17 ▲3.4241.80 ▲3.59
Posts /wp-admin/edit.php2,116 ▲131.98 ▼0.0338.87 ▲4.4035.67 ▼0.19
Add New Post /wp-admin/post-new.php1,544 ▲1623.16 ▼0.02657.10 ▼11.6853.99 ▼2.35
Media Library /wp-admin/upload.php1,419 ▲194.31 ▲0.21103.15 ▼12.3544.93 ▼1.73

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/http-authentication-by-kimofy/http-authentication-by-kimofy.php:94

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

http-authentication-by-kimofy/http-authentication-by-kimofy.php 92% from 13 tests

The main PHP file in "HTTP Authentication By KIMoFy" ver. 5.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 270 characters long)

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
Good job! No executable or dangerous file extensions detected212 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1269183
CSS13029

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin