10% f13-github-mini-profile-widget

Code Review | GitHub Mini Profile Widget

WordPress plugin GitHub Mini Profile Widget scored10%from 54 tests.

About plugin

  • Plugin page: f13-github-mini-p...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Jul 15, 2016
  • Latest release: Sep 15, 2018
  • Number of updates: 6
  • Update frequency: every 132.2 days
  • Top authors: f13dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,172 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/f13-github-mini-profile-widget/github-profile-widget.php+31
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼51.41ms] Passed 4 tests

An overview of server-side resources used by GitHub Mini Profile Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.85 ▼34.11
Dashboard /wp-admin2.12 ▼1.185.90 ▼42.90
Posts /wp-admin/edit.php2.12 ▼1.236.44 ▼42.08
Add New Post /wp-admin/post-new.php2.12 ▼3.775.88 ▼86.55
Media Library /wp-admin/upload.php2.12 ▼1.115.13 ▼28.90

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_github_mini_profile_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for GitHub Mini Profile Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.24 ▼1.141.67 ▼0.0648.42 ▲2.07
Dashboard /wp-admin2,203 ▲155.86 ▼0.1099.21 ▼16.4639.14 ▼12.54
Posts /wp-admin/edit.php2,086 ▼02.06 ▲0.0635.77 ▼0.8333.56 ▼0.83
Add New Post /wp-admin/post-new.php1,542 ▲2118.22 ▼4.89597.35 ▼85.0354.33 ▼10.47
Media Library /wp-admin/upload.php1,382 ▼64.19 ▲0.0193.77 ▼4.6442.73 ▼0.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/f13-github-mini-profile-widget/github-profile-widget.php+31
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_github_mini_profile_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/f13-github-mini-profile-widget/github-profile-widget.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === f13-github-mini-profile-widget === )
  • Screenshots: Screenshot #1 (An example showing the GitHub Mini Profile Widget in use.) image missing
Please take inspiration from this readme.txt

f13-github-mini-profile-widget/github-profile-widget.php 92% from 13 tests

The main PHP file in "GitHub Mini Profile Widget" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("f13-github-mini-profile-widget.php" instead of "github-profile-widget.php")

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 plugin469 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13694291
CSS1221139
Markdown119039

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods444.44%
▷ Protected methods00.00%
▷ Private methods555.56%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.76MB with 0.62MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png165.76KB56.15KB▼ 66.13%
img/banner.png616.45KB19.25KB▼ 96.88%