84% customize-edit-wp-signup-registration-for-wpms

Code Review | Customize/edit wp-signup (registration) for wpms

WordPress plugin Customize/edit wp-signup (registration) for wpms scored 84% from 54 tests.

About plugin

  • Plugin page: customize-edit-wp...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: May 11, 2014
  • Latest release: Jun 14, 2014
  • Number of updates: 10
  • Update frequency: every 3.8 days
  • Top authors: diegpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.10ms] Passed 4 tests

A check of server-side resources used by Customize/edit wp-signup (registration) for wpms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.35 ▼2.67
Dashboard /wp-admin3.32 ▲0.0152.58 ▲2.25
Posts /wp-admin/edit.php3.37 ▲0.0152.85 ▲2.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.48 ▲0.57
Media Library /wp-admin/upload.php3.24 ▲0.0136.62 ▼0.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Customize/edit wp-signup (registration) for wpms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲1413.67 ▲0.423.38 ▼1.6345.50 ▲0.57
Dashboard /wp-admin2,209 ▲34.84 ▼0.03108.01 ▲4.6541.50 ▲4.82
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0140.40 ▲1.1034.73 ▲2.00
Add New Post /wp-admin/post-new.php1,547 ▲1418.50 ▼4.78611.89 ▼34.4564.74 ▼2.38
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0494.50 ▼6.1041.18 ▼7.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-edit-wp-signup-registration-for-wpms/insert-it-at-head.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (First registration step for logged users), #2 (First registration step for non-logged users)
You can look at the official readme.txt

customize-edit-wp-signup-registration-for-wpms/insert-it-at-head.php 92% from 13 tests

"Customize/edit wp-signup (registration) for wpms" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("customize-edit-wp-signup-registration-for-wpms.php" instead of "insert-it-at-head.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,284 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4193199540
HTML1250415
CSS27829319
PHP1142010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin