89% popify-sales-pop-ups

Code Review | Sales Pop ups, Recent orders popups, Reviews, Recent purchases, Social Proof, FOMO and Urgency – Popify

WordPress plugin Sales Pop ups, Recent orders popups, Reviews, Recent purchases, Social Proof, FOMO and Urgency – Popify scored89%from 54 tests.

About plugin

  • Plugin page: popify-sales-pop-ups
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: Jun 12, 2021
  • Latest release: Apr 19, 2023
  • Number of updates: 16
  • Update frequency: every 42.3 days
  • Top authors: popify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,108 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
Installer ran successfully

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

Server-side resources used by Sales Pop ups, Recent orders popups, Reviews, Recent purchases, Social Proof, FOMO and Urgency – Popify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.58 ▼1.92
Dashboard /wp-admin3.32 ▲0.0151.78 ▼3.83
Posts /wp-admin/edit.php3.37 ▲0.0149.71 ▼2.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.12 ▼9.63
Media Library /wp-admin/upload.php3.24 ▲0.0137.77 ▼2.19

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
popify_api_key
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Sales Pop ups, Recent orders popups, Reviews, Recent purchases, Social Proof, FOMO and Urgency – Popify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲20413.66 ▼0.7420.51 ▲18.6847.13 ▲4.48
Dashboard /wp-admin2,199 ▲225.80 ▲0.1585.63 ▼5.9680.43 ▲37.35
Posts /wp-admin/edit.php2,126 ▲232.00 ▲0.0435.05 ▼9.8442.70 ▲3.24
Add New Post /wp-admin/post-new.php1,552 ▲2618.01 ▼5.05712.04 ▲34.0649.84 ▼8.60
Media Library /wp-admin/upload.php1,422 ▲224.13 ▲0.02101.40 ▼17.0371.81 ▲22.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (SKYROCKET your sales with social proof popups!) image not found
The official readme.txt is a good inspiration

popify-sales-pop-ups/popify.php 85% from 13 tests

Analyzing the main PHP file in "Sales Pop ups, Recent orders popups, Reviews, Recent purchases, Social Proof, FOMO and Urgency – Popify" version 1.0.2
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("popify-sales-pop-ups.php" instead of "popify.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected484 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26514355
CSS1160107
JavaScript13022

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 1.78MB with 0.90MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/popify_logo.png9.38KB4.34KB▼ 53.75%
assets/icon-256x256.png26.39KB11.24KB▼ 57.39%
assets/images/popify_icon_old.png9.44KB3.28KB▼ 65.25%
assets/images/popifyLogo.png12.14KB10.61KB▼ 12.55%
assets/screenshot-5.png211.93KB76.44KB▼ 63.93%