83% build-trigger-gatsby

Code Review | Build Trigger for Gatsby

WordPress plugin Build Trigger for Gatsby scored83%from 54 tests.

About plugin

  • Plugin page: build-trigger-gatsby
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: Aug 29, 2023
  • Number of updates: 14
  • Update frequency: every 86.8 days
  • Top authors: zestardtechnologies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,856 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 gracefully, with no errors

Server metrics [RAM: ▼0.63MB] [CPU: ▼11.69ms] Passed 4 tests

Analyzing server-side resources used by Build Trigger for Gatsby
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.48 ▼3.22
Dashboard /wp-admin3.38 ▲0.0846.47 ▲1.13
Posts /wp-admin/edit.php3.49 ▲0.1448.96 ▲3.21
Add New Post /wp-admin/post-new.php3.23 ▼2.6641.94 ▼46.03
Media Library /wp-admin/upload.php3.30 ▲0.0735.29 ▲1.37
Build Trigger for Gatsby /wp-admin/tools.php?page=build-trigger-for-gatsby3.2432.08

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
ztbtfg_build_count
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Build Trigger for Gatsby
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.24 ▼1.051.62 ▲0.0140.07 ▼4.31
Dashboard /wp-admin2,218 ▲304.86 ▼0.0498.64 ▼12.3538.48 ▼3.03
Posts /wp-admin/edit.php2,101 ▲92.05 ▲0.0241.08 ▼0.0334.40 ▼1.82
Add New Post /wp-admin/post-new.php1,536 ▼623.00 ▲4.70689.42 ▲20.9358.68 ▲1.36
Media Library /wp-admin/upload.php1,400 ▲124.22 ▼0.0195.62 ▼13.9943.67 ▲0.80
Build Trigger for Gatsby /wp-admin/tools.php?page=build-trigger-for-gatsby8352.2225.3931.66

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • ztbtfg_build_count
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=build-trigger-for-gatsby
    • > Notice in wp-content/plugins/build-trigger-gatsby/inc/admin/class.ztbtfg.admin.php+183
    Trying to access array offset on value of type bool

SRP Passed 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
The SRP test was a success

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: "'';"
Please take inspiration from this readme.txt

build-trigger-gatsby/build-trigger-for-gatsby.php 85% from 13 tests

This is the main PHP file of "Build Trigger for Gatsby" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("build-trigger-gatsby.php" instead of "build-trigger-for-gatsby.php")

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 detected359 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4106129309
JavaScript115550

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.67
▷ Minimum class complexity2.00
▷ Maximum class complexity22.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin