10% frontend-signup-site-clone

Code Review | Frondend Signup Site Clone

WordPress plugin Frondend Signup Site Clone scored10%from 54 tests.

About plugin

  • Plugin page: frontend-signup-s...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2012
  • Latest release: Mar 8, 2013
  • Number of updates: 14
  • Update frequency: every 10.9 days
  • Top authors: zhouyibhic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,227 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-admin.php+268
    Undefined variable: subdomain_install

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.86ms] Passed 4 tests

An overview of server-side resources used by Frondend Signup Site Clone
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.80 ▼5.32
Dashboard /wp-admin3.31 ▲0.0045.69 ▼8.04
Posts /wp-admin/edit.php3.36 ▲0.0048.10 ▲1.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.60 ▼11.66
Media Library /wp-admin/upload.php3.23 ▲0.0037.38 ▼2.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Frondend Signup Site Clone
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.22 ▲0.081.66 ▼0.4443.72 ▼5.31
Dashboard /wp-admin2,198 ▲185.64 ▼0.1692.17 ▼14.3238.63 ▼5.64
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0536.64 ▼1.1037.03 ▼0.12
Add New Post /wp-admin/post-new.php1,526 ▼323.02 ▼0.10653.60 ▲24.5158.62 ▲5.10
Media Library /wp-admin/upload.php1,391 ▼94.20 ▲0.0099.18 ▼12.6142.77 ▼0.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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)
Everything seems fine, however this is by no means 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
  • 83× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-regForm.php on line 27
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-options.php on line 16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-newFields.php on line 17
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-newFields.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone.php:67
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone.php on line 38
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-regForm.php on line 27
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/upgrade.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-admin.php on line 27
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-admin.php on line 27
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-signup-site-clone/frontend-signup-site-clone-admin.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

frontend-signup-site-clone/frontend-signup-site-clone.php Passed 13 tests

The main PHP script in "Frondend Signup Site Clone" version 0.1 is automatically included on every request by WordPress
36 characters long description:
Clone a site in user signup process.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,658 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP64485321,473
PO File18393185

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin