10% signups

Code Review | Signups

WordPress plugin Signups scored10%from 54 tests.

About plugin

  • Plugin page: signups
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2017
  • Latest release: Jul 28, 2019
  • Number of updates: 16
  • Update frequency: every 40.6 days
  • Top authors: ghostinajar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,222 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/signups/public/class-public.php+503
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.69MB] [CPU: ▼51.11ms] Passed 4 tests

Server-side resources used by Signups
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.179.90 ▼31.45
Dashboard /wp-admin2.32 ▼0.998.05 ▼46.70
Posts /wp-admin/edit.php2.32 ▼1.0410.14 ▼40.27
Add New Post /wp-admin/post-new.php2.32 ▼3.578.09 ▼86.03
Media Library /wp-admin/upload.php2.32 ▼0.917.42 ▼30.09
Settings /wp-admin/admin.php?page=wp_signups_settings2.327.15
All Clipboards /wp-admin/edit.php?post_type=wp_signups_clipboard2.328.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Signups
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲8413.62 ▼0.561.84 ▼0.2340.75 ▼3.21
Dashboard /wp-admin2,227 ▲395.80 ▼0.08100.65 ▼14.6338.84 ▼3.83
Posts /wp-admin/edit.php2,113 ▲272.01 ▲0.0240.08 ▲2.4934.80 ▲0.42
Add New Post /wp-admin/post-new.php1,537 ▲417.76 ▼5.38673.26 ▼29.8757.11 ▲7.33
Media Library /wp-admin/upload.php1,409 ▲184.22 ▲0.0797.76 ▼7.6944.56 ▲0.37
Settings /wp-admin/admin.php?page=wp_signups_settings8222.0624.7126.18
All Clipboards /wp-admin/edit.php?post_type=wp_signups_clipboard1,0832.3534.5325.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/signups/public/class-public.php+503
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • wp_signups_settings
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wp_signups_clipboard
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/signups/public/class-public.php+503
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/signups/public/class-public.php on line 503

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=wp_signups_clipboard
    • > Javascript (severe) in unknown
    /wp-content/plugins/signups/admin/js/wp-signups-admin.js?ver=1.0.0 49:30 Uncaught TypeError: Cannot read properties of undefined (reading 'substr')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
10 plugin tags: sign up, volunteer, signup, signup sheet, pto...

signups/wp-signups.php 85% from 13 tests

The principal PHP file in "Signups" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("signups.php" instead of "wp-signups.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected1,879 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP113437381,073
CSS487171767
JavaScript2155039

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.62
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods62
▷ Static methods58.06%
▷ Public methods5791.94%
▷ Protected methods00.00%
▷ Private methods58.06%
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
There were not PNG files found in your plugin