84% bronto-newsletter-signup

Code Review | Bronto Newsletter Signup

WordPress plugin Bronto Newsletter Signup scored84%from 54 tests.

About plugin

  • Plugin page: bronto-newsletter...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: May 24, 2015
  • Latest release: Dec 28, 2017
  • Number of updates: 26
  • Update frequency: every 36.6 days
  • Top authors: gaza1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,968 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Bronto Newsletter Signup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.51 ▲0.95
Dashboard /wp-admin3.35 ▲0.0447.95 ▼0.89
Posts /wp-admin/edit.php3.40 ▲0.0448.05 ▲1.18
Add New Post /wp-admin/post-new.php5.93 ▲0.04103.52 ▲4.59
Media Library /wp-admin/upload.php3.27 ▲0.0440.16 ▲6.95

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Bronto Newsletter Signup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.29 ▼1.091.78 ▼0.1240.45 ▼3.12
Dashboard /wp-admin2,221 ▲335.04 ▲0.14106.25 ▼3.9867.93 ▲26.63
Posts /wp-admin/edit.php2,107 ▲182.02 ▲0.0037.76 ▲1.1534.90 ▼0.15
Add New Post /wp-admin/post-new.php1,680 ▲16622.60 ▲4.90722.82 ▲77.9855.43 ▼0.41
Media Library /wp-admin/upload.php1,397 ▲124.17 ▼0.0096.13 ▼3.5969.43 ▲27.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bronto-newsletter-signup/sbd-bronto-newsletter.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: letter, email, marketing, sign, up...

bronto-newsletter-signup/sbd-bronto-newsletter.php 92% from 13 tests

The principal PHP file in "Bronto Newsletter Signup" v. 2.0.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bronto-newsletter-signup.php" instead of "sbd-bronto-newsletter.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
Success! There were no dangerous files found in this plugin425 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/16x16-icon.png1.11KB0.61KB▼ 45.00%
assets/100x100-icon.png3.88KB2.21KB▼ 42.94%
assets/25x25-icon.png1.38KB0.97KB▼ 29.89%