84% simple-subscriber-signup-widget

Code Review | Simple Subscriber Signup Widget

WordPress plugin Simple Subscriber Signup Widget scored84%from 54 tests.

About plugin

  • Plugin page: simple-subscriber...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Apr 15, 2014
  • Latest release: Apr 17, 2014
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: miocene22 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,770 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.03MB] [CPU: ▼3.88ms] Passed 4 tests

A check of server-side resources used by Simple Subscriber Signup Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.52 ▲1.22
Dashboard /wp-admin3.34 ▲0.0350.10 ▼3.68
Posts /wp-admin/edit.php3.39 ▲0.0351.42 ▼0.71
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.79 ▼12.33
Media Library /wp-admin/upload.php3.26 ▲0.0342.36 ▲3.33

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_subscriber_simsignup_widget
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Simple Subscriber Signup Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13813.53 ▼0.878.71 ▲6.9841.28 ▲0.97
Dashboard /wp-admin2,203 ▲155.80 ▲0.97101.82 ▼3.3742.30 ▼3.68
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0234.98 ▼0.8433.22 ▼3.58
Add New Post /wp-admin/post-new.php1,533 ▼323.43 ▲0.21680.08 ▲2.7570.27 ▲1.09
Media Library /wp-admin/upload.php1,391 ▲34.16 ▲0.0299.53 ▼16.6246.73 ▼1.10

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_subscriber_simsignup_widget
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/simple-subscriber-signup-widget/simple-signup-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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 your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === simple-subscriber-signup-widget === )
The official readme.txt might help

simple-subscriber-signup-widget/simple-signup-widget.php 92% from 13 tests

The principal PHP file in "Simple Subscriber Signup Widget" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-subscriber-signup-widget.php" instead of "simple-signup-widget.php")

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
Success! There were no dangerous files found in this plugin236 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11628131
Markdown251063
JavaScript16342

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin