82% social-popup

Code Review | Social PopUP (email lightbox)

WordPress plugin Social PopUP (email lightbox) scored82%from 54 tests.

About plugin

  • Plugin page: social-popup
  • Plugin version: 1.6.4.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 20, 2012
  • Latest release: Aug 2, 2022
  • Number of updates: 61
  • Update frequency: every 60.6 days
  • Top authors: timersys (70.49%)noahkagan (22.95%)grimmdude (9.84%)

Code review

54 tests

User reviews

33 reviews

Install metrics

100+ active /83,481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼5.27ms] Passed 4 tests

An overview of server-side resources used by Social PopUP (email lightbox)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1834.83 ▼5.95
Dashboard /wp-admin3.53 ▲0.1949.75 ▼11.67
Posts /wp-admin/edit.php3.65 ▲0.2945.43 ▼1.44
Add New Post /wp-admin/post-new.php6.11 ▲0.2394.36 ▼2.03
Media Library /wp-admin/upload.php3.46 ▲0.2340.46 ▲2.75

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
spu_settings
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social PopUP (email lightbox)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,219 ▲47319.99 ▲5.3791.86 ▲90.2954.38 ▲13.59
Dashboard /wp-admin2,220 ▲435.64 ▲0.0186.68 ▼7.5838.94 ▼6.09
Posts /wp-admin/edit.php2,128 ▲252.13 ▲0.1437.31 ▼5.2230.93 ▼4.69
Add New Post /wp-admin/post-new.php1,560 ▲3318.28 ▼4.71614.42 ▼135.5564.94 ▲7.26
Media Library /wp-admin/upload.php1,431 ▲344.18 ▼0.05100.44 ▼18.7545.73 ▼6.51

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • spu_settings
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-popup/admin/fields.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/social-popup/admin/header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/social-popup/admin/sidebar.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 81% 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Social PopUp) image missing
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

social-popup/social-popup.php 69% from 13 tests

The main PHP script in "Social PopUP (email lightbox)" version 1.6.4.6 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 267 characters long)

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
Everything looks great! No dangerous files found in this plugin2,621 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP64666641,609
PO File3264267676
JavaScript53813271
CSS20065

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity96.33
▷ Minimum class complexity70.00
▷ Maximum class complexity120.00
Average method complexity5.93
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods58
▷ Static methods813.79%
▷ Public methods5696.55%
▷ Protected methods00.00%
▷ Private methods23.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin