84% triggerbee

Code Review | Triggerbee

WordPress plugin Triggerbee scored84%from 54 tests.

About plugin

  • Plugin page: triggerbee
  • Plugin version: 2.0 */...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 19, 2018
  • Latest release: Sep 25, 2023
  • Number of updates: 35
  • Update frequency: every 57.6 days
  • Top authors: triggerbee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,478 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Triggerbee
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.29 ▼3.08
Dashboard /wp-admin3.35 ▲0.0444.56 ▼5.34
Posts /wp-admin/edit.php3.40 ▲0.0445.02 ▲2.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.66 ▼2.50
Media Library /wp-admin/upload.php3.27 ▲0.0434.59 ▼0.64
Triggerbee /wp-admin/options-general.php?page=triggerbee_options_page3.2428.50

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Triggerbee
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.22 ▼1.166.67 ▲4.8043.14 ▼7.62
Dashboard /wp-admin2,207 ▲224.86 ▼1.02101.33 ▼13.0139.50 ▼8.63
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0439.78 ▲1.8336.04 ▲7.18
Add New Post /wp-admin/post-new.php1,517 ▼1617.51 ▼5.52652.12 ▲7.5445.24 ▼17.21
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.0795.01 ▼7.6940.84 ▼3.35
Triggerbee /wp-admin/options-general.php?page=triggerbee_options_page8682.1527.1659.16

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/triggerbee/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/triggerbee/options.php:3

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in triggerbee/assets to your readme.txt
Please take inspiration from this readme.txt

triggerbee/triggerbee.php 92% from 13 tests

The principal PHP file in "Triggerbee" v. 2.0 */... is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "2.0 */...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin633 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1674303
PHP2658240
JavaScript235290

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/triggerbee-logo-black-280px.png56.09KB10.50KB▼ 81.29%
images/bullet-white-triggerbee.png41.65KB20.17KB▼ 51.57%