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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼0.93 | 8.37 ▼14.28 |
Dashboard /wp-admin | 1.81 ▼1.24 | 5.61 ▼36.01 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.48 ▼35.45 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.81 ▼1,144.35 |
Media Library /wp-admin/upload.php | 1.81 ▼1.20 | 5.13 ▼34.04 |
About Me /wp-admin/options-general.php?page=kantoniak-about-me | 1.81 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,656 ▲50 | 15.77 ▲0.25 | 7.45 ▼1.39 | 47.12 ▼0.36 |
Dashboard /wp-admin | 2,935 ▲83 | 5.88 ▲0.06 | 143.96 ▲13.02 | 106.79 ▲5.56 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.68 ▼0.01 | 67.23 ▼1.65 | 93.44 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,669 ▲13 | 17.46 ▼0.97 | 368.40 ▼1.39 | 117.11 ▼4.99 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 5.03 ▲0.01 | 148.98 ▼0.31 | 109.87 ▼17.44 |
About Me /wp-admin/options-general.php?page=kantoniak-about-me | 1,139 | 2.10 | 56.90 | 74.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 10 | 156 |
SVG | 6 | 0 | 0 | 27 |
CSS | 1 | 1 | 0 | 13 |
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 code | 0.18 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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