94% get-noticed-horizontal-subscribe-bar

Code Review | Get Noticed: Horizontal Subscribe Form

WordPress plugin Get Noticed: Horizontal Subscribe Form scored 94% from 54 tests.

About plugin

  • Plugin page: get-noticed-horiz...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 5.8.1
  • First release: Nov 5, 2014
  • Latest release: Nov 6, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: david.kryzaniak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 836 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼139.11ms] Passed 4 tests

Analyzing server-side resources used by Get Noticed: Horizontal Subscribe Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.20 ▲12.47
Dashboard /wp-admin3.09 ▲0.0440.41 ▲2.14
Posts /wp-admin/edit.php3.14 ▲0.0445.88 ▲5.24
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.32 ▼564.91
Media Library /wp-admin/upload.php3.04 ▲0.0333.39 ▲1.11
GNT: Horizontal Subscribe /wp-admin/themes.php?page=gnt-horizontal-subscribe-settings3.0128.64

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Get Noticed: Horizontal Subscribe Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲11015.82 ▲0.239.82 ▲2.4048.20 ▼1.26
Dashboard /wp-admin2,975 ▲415.89 ▼0.05135.46 ▼5.98117.79 ▼0.80
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0061.19 ▼8.4090.68 ▲0.77
Add New Post /wp-admin/post-new.php1,673 ▲119.23 ▲0.28362.93 ▲7.46108.41 ▼4.29
Media Library /wp-admin/upload.php1,812 ▲25.02 ▲0.02143.58 ▼9.65120.43 ▼0.03
GNT: Horizontal Subscribe /wp-admin/themes.php?page=gnt-horizontal-subscribe-settings1,0742.0859.0684.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-noticed-horizontal-subscribe-bar/gnt-horizontal-subscribe.php:30

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === get-noticed-horizontal-subscribe-bar === )
You can look at the official readme.txt

get-noticed-horizontal-subscribe-bar/gnt-horizontal-subscribe.php 92% from 13 tests

"Get Noticed: Horizontal Subscribe Form" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("get-noticed-horizontal-subscribe-bar.php" instead of "gnt-horizontal-subscribe.php")

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
Success! There were no dangerous files found in this plugin152 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22453152

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected