90% wp-trigger-github

Code Review | WP Trigger Github

WordPress plugin WP Trigger Github scored90%from 54 tests.

About plugin

  • Plugin page: wp-trigger-github
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 16, 2021
  • Latest release: Sep 20, 2022
  • Number of updates: 5
  • Update frequency: every 153.2 days
  • Top authors: glukmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /638 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.88ms] Passed 4 tests

This is a short check of server-side resources used by WP Trigger Github
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.79 ▲0.46
Dashboard /wp-admin3.33 ▲0.0344.07 ▼6.39
Posts /wp-admin/edit.php3.38 ▲0.0246.39 ▼3.25
Add New Post /wp-admin/post-new.php5.91 ▲0.03104.02 ▲9.59
Media Library /wp-admin/upload.php3.25 ▲0.0232.18 ▼2.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
wp_trigger_github_last_triggered_timestamp
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Trigger Github
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲11913.70 ▼0.861.75 ▼0.0639.45 ▼4.47
Dashboard /wp-admin2,249 ▲615.85 ▲0.95104.97 ▼8.4258.64 ▲11.18
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0538.05 ▼6.4238.56 ▲3.92
Add New Post /wp-admin/post-new.php1,533 ▼1223.18 ▲0.44598.88 ▼33.6747.52 ▼3.40
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.0595.96 ▼7.3742.32 ▼2.96

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

Plugin configuration Passed 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
3 plugin tags: headless wordpress, trigger github actions, github actions

wp-trigger-github/wp-trigger-github.php Passed 13 tests

"WP Trigger Github" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Save or update action triggers Github repository_dispatch action

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected170 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23121150
Markdown18020

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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 Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin