90% widget-github-profile

Code Review | Widget Github Profile

WordPress plugin Widget Github Profile scored90%from 54 tests.

About plugin

  • Plugin page: widget-github-pro...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Dec 20, 2018
  • Number of updates: 7
  • Update frequency: every 7.4 days
  • Top authors: atakanuludag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.53ms] Passed 4 tests

A check of server-side resources used by Widget Github Profile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.34 ▼5.30
Dashboard /wp-admin3.35 ▲0.0546.41 ▼5.11
Posts /wp-admin/edit.php3.40 ▲0.0544.24 ▼1.94
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.64 ▼17.77
Media Library /wp-admin/upload.php3.27 ▲0.0533.51 ▼1.05

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Widget Github Profile
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.48 ▲0.101.69 ▼0.2636.81 ▼12.31
Dashboard /wp-admin2,209 ▲175.89 ▲0.94108.14 ▼1.3441.57 ▼4.52
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0539.30 ▲1.7934.71 ▲2.21
Add New Post /wp-admin/post-new.php1,535 ▲223.20 ▼0.04592.23 ▼74.2552.01 ▼2.43
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.02103.19 ▲0.4244.01 ▼0.34

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_widget_github_profile_card
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: github profile card, profile, profile card, github widget, card

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

The main PHP script in "Widget Github Profile" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin313 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16810145
CSS1234114
PO File1171854

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin