84% kantbtrue-about-me

Code Review | Kantbtrue about me

WordPress plugin Kantbtrue about me scored 84% from 54 tests.

About plugin

  • Plugin page: kantbtrue-about-me
  • Plugin version: 1.2.11
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: May 15, 2020
  • Latest release: Nov 11, 2022
  • Number of updates: 17
  • Update frequency: every 53.6 days
  • Top authors: kantbtrue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 4,412 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.28ms] Passed 4 tests

This is a short check of server-side resources used by Kantbtrue about me
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.54 ▼7.23
Dashboard /wp-admin3.34 ▲0.0347.47 ▲1.16
Posts /wp-admin/edit.php3.46 ▲0.1052.40 ▲0.61
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.89 ▼23.66
Media Library /wp-admin/upload.php3.24 ▲0.0133.50 ▲2.35

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 10 new options
New WordPress options
widget_kantbtrue_about_me
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
kbtam_show_rating
kbtam_activation_date
kbtam_content_updated
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Kantbtrue about me
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21115.03 ▲0.801.99 ▲0.2040.44 ▼1.57
Dashboard /wp-admin2,359 ▲1746.62 ▲0.71133.42 ▲30.3539.19 ▼4.06
Posts /wp-admin/edit.php2,268 ▲1793.58 ▲1.5460.87 ▲20.0135.32 ▲0.29
Add New Post /wp-admin/post-new.php1,540 ▼323.27 ▲4.88634.82 ▲4.6737.17 ▼18.66
Media Library /wp-admin/upload.php1,404 ▲134.27 ▲0.0783.28 ▼14.0543.62 ▲0.47

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kantbtrue-about-me/class/class-kbtam-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-about-me/inc/scripts.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-about-me/inc/styles.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kantbtrue-about-me/class/KBTAM_Widget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: about widget, about author, about me, about me widget, author box...

kantbtrue-about-me/kantbtrue-about-me.php Passed 13 tests

The main PHP script in "Kantbtrue about me" version 1.2.11 is automatically included on every request by WordPress
56 characters long description:
An elegant about me widget and profile widget for blogs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected13,144 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,299
JSON2003,115
PHP828124463
PO File23436121
JavaScript22676
CSS213470

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity22.00
▷ Minimum class complexity19.00
▷ Maximum class complexity25.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants2
▷ Global constants2100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/signature-demo.png2.15KB2.07KB▼ 4.13%