84% github-release-downloads

Code Review | GitHub Release Downloads

WordPress plugin GitHub Release Downloads scored84%from 54 tests.

About plugin

  • Plugin page: github-release-do...
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2015
  • Latest release: Nov 24, 2020
  • Number of updates: 29
  • Update frequency: every 71.7 days
  • Top authors: ivanrf (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by GitHub Release Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.99 ▼1.53
Dashboard /wp-admin3.32 ▲0.0146.92 ▼5.62
Posts /wp-admin/edit.php3.37 ▲0.0154.35 ▲5.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.50 ▼6.54
Media Library /wp-admin/upload.php3.24 ▲0.0136.79 ▲0.03
GitHub Release Downloads /wp-admin/options-general.php?page=github-release-downloads3.2133.00

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
grd_user
widget_recent-posts
widget_recent-comments
db_upgraded
grd_repo
grd_token
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GitHub Release Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲9114.75 ▲0.521.78 ▼0.3940.70 ▼7.40
Dashboard /wp-admin2,254 ▲694.91 ▼0.02111.02 ▼4.5544.24 ▼2.35
Posts /wp-admin/edit.php2,136 ▲472.19 ▲0.1841.50 ▲5.5935.80 ▲0.85
Add New Post /wp-admin/post-new.php1,574 ▲4118.34 ▼5.00621.46 ▼68.5763.30 ▲7.29
Media Library /wp-admin/upload.php1,436 ▲454.21 ▲0.02100.80 ▼5.6046.66 ▼3.57
GitHub Release Downloads /wp-admin/options-general.php?page=github-release-downloads9612.2230.9159.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
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • grd_token
    • grd_user
    • widget_recent-comments
    • widget_theysaidso_widget
    • grd_repo

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/github-release-downloads/github-release-downloads.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

github-release-downloads/github-release-downloads.php Passed 13 tests

"GitHub Release Downloads" version 2.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
Get the download count, links and more information for releases of GitHub repositories.

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
Good job! No executable or dangerous file extensions detected1,469 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24201761,460
JavaScript1259

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity161.00
▷ Minimum class complexity161.00
▷ Maximum class complexity161.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods46
▷ Static methods12.17%
▷ Public methods715.22%
▷ Protected methods3984.78%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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