10% kantoniak-about-me

Code Review | kantoniak About Me

WordPress plugin kantoniak About Me scored 10% from 53 tests.

About plugin

  • Plugin page: kantoniak-about-me
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.7.4
  • WordPress version: 5.8.1
  • First release: Apr 24, 2017
  • Latest release: Apr 24, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kantoniak (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 398 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/kantoniak-about-me/kantoniak-about-me.php+111
    Undefined property: kantoniak\AboutMeWidget::$base_id

Server metrics [RAM: ▼1.84MB] [CPU: ▼312.46ms] Passed 4 tests

This is a short check of server-side resources used by kantoniak About Me
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.938.37 ▼14.28
Dashboard /wp-admin1.81 ▼1.245.61 ▼36.01
Posts /wp-admin/edit.php1.81 ▼1.305.48 ▼35.45
Add New Post /wp-admin/post-new.php1.81 ▼3.625.81 ▼1,144.35
Media Library /wp-admin/upload.php1.81 ▼1.205.13 ▼34.04
About Me /wp-admin/options-general.php?page=kantoniak-about-me1.815.57

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options
widget_kantoniak-about-me-social

Browser metrics Passed 4 tests

Checking browser requirements for kantoniak About Me
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,656 ▲5015.77 ▲0.257.45 ▼1.3947.12 ▼0.36
Dashboard /wp-admin2,935 ▲835.88 ▲0.06143.96 ▲13.02106.79 ▲5.56
Posts /wp-admin/edit.php2,711 ▲52.68 ▼0.0167.23 ▼1.6593.44 ▲1.75
Add New Post /wp-admin/post-new.php1,669 ▲1317.46 ▼0.97368.40 ▼1.39117.11 ▼4.99
Media Library /wp-admin/upload.php1,777 ▲55.03 ▲0.01148.98 ▼0.31109.87 ▼17.44
About Me /wp-admin/options-general.php?page=kantoniak-about-me1,1392.1056.9074.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/kantoniak-about-me/kantoniak-about-me.php+111
    Undefined property: kantoniak\AboutMeWidget::$base_id
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_kantoniak-about-me-social

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=kantoniak-about-me
    • > Notice in wp-content/plugins/kantoniak-about-me/kantoniak-about-me.php+111
    Undefined property: kantoniak\AboutMeWidget::$base_id
    • > GET request to /wp-admin/options-general.php?page=kantoniak-about-me
    • > Warning in wp-content/plugins/kantoniak-about-me/kantoniak-about-me.php+97
    json_decode() expects parameter 1 to be string, array given
    • > GET request to /wp-admin/options-general.php?page=kantoniak-about-me
    • > Notice in wp-content/plugins/kantoniak-about-me/template-settings.php+18
    Undefined variable: settingsUpdated
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=kantoniak-about-me
    • > Notice in wp-content/plugins/kantoniak-about-me/template-settings.php+8
    Trying to access array offset on value of type null

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kantoniak-about-me/template-widget.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'kantoniak\\AboutMe' not found in wp-content/plugins/kantoniak-about-me/template-settings.php:15
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/kantoniak-about-me/template-widget.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kantoniak-about-me/kantoniak-about-me.php:101
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/kantoniak-about-me/template-widget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: about, social icons, social

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

The main PHP file in "kantoniak About Me" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
This plugin adds personal info like social media URLs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin196 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP34810156
SVG60027
CSS11013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin