79% release-listener-for-github

Code Review | Release listener for GitHub

WordPress plugin Release listener for GitHub scored79%from 54 tests.

About plugin

  • Plugin page: release-listener-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 21, 2017
  • Latest release: Apr 10, 2017
  • Number of updates: 3
  • Update frequency: every 15.3 days
  • Top authors: piupiiu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /440 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.74ms] Passed 4 tests

This is a short check of server-side resources used by Release listener for GitHub
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.81 ▼3.12
Dashboard /wp-admin3.35 ▲0.0543.71 ▼3.75
Posts /wp-admin/edit.php3.40 ▲0.0445.82 ▼1.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.02 ▼10.63
Media Library /wp-admin/upload.php3.27 ▲0.0434.34 ▲3.61
GitHub release listener /wp-admin/options-general.php?page=wgrl-options3.2432.24

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Release listener for GitHub
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.66 ▼0.751.71 ▼0.2339.38 ▼5.78
Dashboard /wp-admin2,207 ▲195.80 ▼0.0796.44 ▼12.7439.36 ▼3.75
Posts /wp-admin/edit.php2,093 ▲12.02 ▲0.0039.47 ▲4.3534.95 ▲1.48
Add New Post /wp-admin/post-new.php1,536 ▲323.17 ▼0.20675.48 ▼6.5861.27 ▼12.39
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0096.52 ▼16.1542.23 ▼3.30
GitHub release listener /wp-admin/options-general.php?page=wgrl-options9652.1827.6427.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/release-listener-for-github/release-listener-for-github.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/release-listener-for-github/options.php:4

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: webhook, release, github

release-listener-for-github/release-listener-for-github.php Passed 13 tests

The entry point to "Release listener for GitHub" version 1.1 is a PHP file that has certain tags in its header comment area
80 characters long description:
Listens to a GitHub webhook and creates a new post every time a release is made.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected279 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22611279

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions11
▷ Named functions11100.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
No PNG images were found in this plugin