83% getsitecontrol

Code Review | Getsitecontrol — Email Marketing Plugin | Popup Maker, Automations & Newsletters

WordPress plugin Getsitecontrol — Email Marketing Plugin | Popup Maker, Automations & Newsletters scored83%from 54 tests.

About plugin

  • Plugin page: getsitecontrol
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 2, 2016
  • Latest release: Aug 15, 2023
  • Number of updates: 74
  • Update frequency: every 36.8 days
  • Top authors: getsitecontrol (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

3,000+ active /108,844 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.07MB] [CPU: ▲1.56ms] Passed 4 tests

This is a short check of server-side resources used by Getsitecontrol — Email Marketing Plugin | Popup Maker, Automations & Newsletters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0572.46 ▲28.84
Dashboard /wp-admin3.38 ▲0.0752.56 ▲1.90
Posts /wp-admin/edit.php3.49 ▲0.1354.95 ▼0.57
Add New Post /wp-admin/post-new.php5.98 ▲0.0998.81 ▼3.42
Media Library /wp-admin/upload.php3.30 ▲0.0743.57 ▲8.34
Sign in /wp-admin/admin.php?page=getsitecontrol_sign_in3.2731.91
Getsitecontrol /wp-admin/admin.php?page=getsitecontrol3.2737.63
Sign up /wp-admin/admin.php?page=getsitecontrol_sign_up3.2734.84

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
get_site_control_settings
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Getsitecontrol — Email Marketing Plugin | Popup Maker, Automations & Newsletters
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.36 ▲0.012.59 ▲0.9947.42 ▲3.73
Dashboard /wp-admin2,225 ▲575.59 ▲0.0585.89 ▼11.8577.74 ▲32.13
Posts /wp-admin/edit.php2,133 ▲302.00 ▲0.0139.35 ▼1.6035.22 ▼2.57
Add New Post /wp-admin/post-new.php1,709 ▲18322.03 ▼1.11651.86 ▼13.2748.24 ▼8.88
Media Library /wp-admin/upload.php1,433 ▲334.25 ▲0.10101.22 ▼9.9878.96 ▲30.97
Sign in /wp-admin/admin.php?page=getsitecontrol_sign_in8992.0227.1555.68
Getsitecontrol /wp-admin/admin.php?page=getsitecontrol9162.0525.2138.13
Sign up /wp-admin/admin.php?page=getsitecontrol_sign_up9132.0527.8235.26

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/getsitecontrol/templates/sign_in.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/getsitecontrol/templates/index.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/getsitecontrol/templates/sign_out.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/getsitecontrol/templates/sign_up.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

getsitecontrol/get-site-control.php 85% from 13 tests

The main file in "Getsitecontrol — Email Marketing Plugin | Popup Maker, Automations & Newsletters" v. 3.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 188 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("getsitecontrol.php" instead of "get-site-control.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,178 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP783147441
JavaScript16487430
CSS1270279
YAML12026
SVG2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods2596.15%
▷ Public methods1973.08%
▷ Protected methods726.92%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
templates/images/gsc-logo-white.png1.08KB0.57KB▼ 47.05%