89% batsignal

Code Review | Batsignal

WordPress plugin Batsignal scored89%from 54 tests.

About plugin

  • Plugin page: batsignal
  • Plugin version: 2.1.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 22, 2020
  • Latest release: Aug 21, 2023
  • Number of updates: 39
  • Update frequency: every 27.3 days
  • Top authors: gothamdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.44ms] Passed 4 tests

A check of server-side resources used by Batsignal
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.92 ▲1.83
Dashboard /wp-admin3.37 ▲0.0753.93 ▲1.54
Posts /wp-admin/edit.php3.43 ▲0.0753.84 ▼0.39
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.62 ▼18.50
Media Library /wp-admin/upload.php3.30 ▲0.0738.58 ▼0.39

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Batsignal
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.35 ▼0.021.76 ▼0.1144.54 ▲3.85
Dashboard /wp-admin2,217 ▲375.60 ▲0.0889.46 ▲1.1340.81 ▼2.93
Posts /wp-admin/edit.php2,126 ▲232.00 ▲0.0137.39 ▲0.3036.56 ▼0.30
Add New Post /wp-admin/post-new.php1,541 ▲623.36 ▲4.90696.26 ▲13.6666.83 ▼0.60
Media Library /wp-admin/upload.php1,422 ▲254.21 ▲0.0297.81 ▼4.8543.70 ▲0.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 90% 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 need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === Batsignal === )
The official readme.txt might help

batsignal/launch-my-btg.php 85% from 13 tests

"Batsignal" version 2.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("batsignal.php" instead of "launch-my-btg.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 283 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected335 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210423335

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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 functions787.50%
▷ Anonymous functions112.50%
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
No PNG files were detected