90% sign-me-up

Code Review | Sign Me Up

WordPress plugin Sign Me Up scored90%from 54 tests.

About plugin

  • Plugin page: sign-me-up
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 7, 2015
  • Latest release: Feb 4, 2016
  • Number of updates: 28
  • Update frequency: every 13.0 days
  • Top authors: jaromy (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /6,465 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Sign Me Up
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.39 ▼1.91
Dashboard /wp-admin3.35 ▲0.0052.26 ▼17.31
Posts /wp-admin/edit.php3.40 ▲0.0449.47 ▼2.88
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.47 ▼23.14
Media Library /wp-admin/upload.php3.27 ▲0.0437.99 ▲1.60

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_smu-widget
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Sign Me Up: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲12613.88 ▼0.729.76 ▲7.7845.36 ▲2.32
Dashboard /wp-admin2,189 ▲125.49 ▼0.1091.16 ▲1.2836.22 ▼5.32
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0239.49 ▲0.3036.85 ▲0.24
Add New Post /wp-admin/post-new.php1,526 ▼023.93 ▲1.00651.06 ▼1.6348.03 ▼8.12
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.0794.18 ▼31.1142.84 ▼7.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_smu-widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 no errors were found, this is by no means 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 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
8 plugin tags: signup form, ajax, widget, phplist, form...

sign-me-up/sign-me-up.php Passed 13 tests

The entry point to "Sign Me Up" version 1.5.1 is a PHP file that has certain tags in its header comment area
139 characters long description:
Add a simple straightforward sign-up form to your WordPress site. Integrates with phpList, the most popular open-source newsletter manager.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,303 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21661501,125
PHP34186112
PO File1121244
CSS12422

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected