83% flair-github

Code Review | Flair - Github

WordPress plugin Flair - Github scored83%from 54 tests.

About plugin

  • Plugin page: flair-github
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2021
  • Latest release: Dec 21, 2021
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: m4n0jkum4r (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.20ms] Passed 4 tests

This is a short check of server-side resources used by Flair - Github
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.11 ▲0.02
Dashboard /wp-admin3.31 ▲0.0144.41 ▼3.36
Posts /wp-admin/edit.php3.36 ▲0.0142.21 ▼5.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.59 ▼14.58
Media Library /wp-admin/upload.php3.23 ▲0.0134.42 ▼1.44

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Flair - Github
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.164.59 ▲2.9642.35 ▲0.08
Dashboard /wp-admin2,209 ▲235.92 ▼0.0195.29 ▼11.0837.24 ▼7.46
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0336.13 ▲1.1332.82 ▼4.28
Add New Post /wp-admin/post-new.php1,520 ▼923.32 ▲5.07686.34 ▲43.9656.94 ▲2.58
Media Library /wp-admin/upload.php1,382 ▼94.24 ▲0.0597.27 ▼3.3241.46 ▲0.04

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/flair-github/github-cards.php

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 83% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: github, search, flair, profile, card

flair-github/github-cards.php 62% from 13 tests

The principal PHP file in "Flair - Github" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.2.4" instead of "7.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("flair-github.php" instead of "github-cards.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.2")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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 detected370 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS2350177
JavaScript2519153
PHP1191740

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin