10% widget-github-organization

Code Review | Widget GitHub Organization

WordPress plugin Widget GitHub Organization scored10%from 54 tests.

About plugin

  • Plugin page: widget-github-org...
  • Plugin version: 0.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Dec 27, 2015
  • Latest release: Dec 27, 2015
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: bobboteck (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /541 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/widget-github-organization/Widget_Github_Organization.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; Widget_Github_Organization has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼60.17ms] Passed 4 tests

Server-side resources used by Widget GitHub Organization
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.58 ▼38.59
Dashboard /wp-admin2.10 ▼1.215.66 ▼47.26
Posts /wp-admin/edit.php2.10 ▼1.265.48 ▼50.90
Add New Post /wp-admin/post-new.php2.10 ▼3.796.00 ▼103.91
Media Library /wp-admin/upload.php2.10 ▼1.145.21 ▼31.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Widget GitHub Organization
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.331.72 ▼0.1744.47 ▲0.65
Dashboard /wp-admin2,209 ▲184.85 ▼1.01102.44 ▼2.3944.12 ▲4.10
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0233.94 ▼8.0336.08 ▼0.99
Add New Post /wp-admin/post-new.php1,533 ▼023.19 ▼0.03661.73 ▼8.8352.11 ▼3.84
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0293.66 ▼12.5343.33 ▼1.29

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
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/widget-github-organization/Widget_Github_Organization.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; Widget_Github_Organization has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_widget_github_organization
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-github-organization/Widget_Github_Organization.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 69% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === widget-github-organization === )
  • Contributors: No tags were detected
  • Contributors: Plugin contributors field is missing
  • Screenshots: These screenshots do not have images: #1 (Show widget in action), #2 (Widget settings)
You can take inspiration from this readme.txt

widget-github-organization/Widget_Github_Organization.php 92% from 13 tests

The main PHP script in "Widget GitHub Organization" version 0.8.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("widget-github-organization.php" instead of "Widget_Github_Organization.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,358 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25454350
CSS244239
LESS132230
Sass122228
SVG130197
PHP1101182
Markdown218032

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 1.27MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/activate-plugin.png17.09KB7.37KB▼ 56.86%
screenshot-2.png22.10KB9.04KB▼ 59.11%
img/screenshot-2.png22.10KB9.04KB▼ 59.11%
img/screenshot-1.png604.97KB214.71KB▼ 64.51%
screenshot-1.png604.97KB214.71KB▼ 64.51%