83% yeloni-free-exit-popup

Code Review | Yeloni Exit Popup | (Free) GDPR Compliance

WordPress plugin Yeloni Exit Popup | (Free) GDPR Compliance scored83%from 54 tests.

About plugin

  • Plugin page: yeloni-free-exit-...
  • Plugin version: 9.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jan 16, 2015
  • Latest release: Oct 5, 2023
  • Number of updates: 291
  • Update frequency: every 11.0 days
  • Top authors: jayasrinagrale (84.19%)kranthitech (16.15%)

Code review

54 tests

User reviews

59 reviews

Install metrics

1,000+ active /172,002 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.32ms] Passed 4 tests

Server-side resources used by Yeloni Exit Popup | (Free) GDPR Compliance
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.22 ▲3.26
Dashboard /wp-admin3.36 ▲0.0147.30 ▼11.52
Posts /wp-admin/edit.php3.47 ▲0.1243.39 ▼9.23
Add New Post /wp-admin/post-new.php5.94 ▲0.0578.81 ▼19.79
Media Library /wp-admin/upload.php3.28 ▲0.0537.49 ▲4.38

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Yeloni Exit Popup | (Free) GDPR Compliance
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.63 ▼0.751.72 ▲0.0543.61 ▲1.62
Dashboard /wp-admin2,209 ▲275.82 ▲0.9499.90 ▼3.6166.71 ▲22.53
Posts /wp-admin/edit.php2,101 ▲122.00 ▼0.0233.80 ▼4.8834.41 ▲3.62
Add New Post /wp-admin/post-new.php1,681 ▲14822.30 ▼0.94720.69 ▲39.0249.18 ▼9.38
Media Library /wp-admin/upload.php1,403 ▲184.13 ▼0.1196.53 ▼6.7272.85 ▲26.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yeloni-free-exit-popup/wordpress/yetience_config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yeloni-free-exit-popup/wordpress/yetience-class.php:25
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yeloni-free-exit-popup/wordpress/admin-load.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yeloni-free-exit-popup/wordpress/client-load.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 26 tag instead of maximum 10
You can look at the official readme.txt

yeloni-free-exit-popup/yetience-plugin.php 85% from 13 tests

Analyzing the main PHP file in "Yeloni Exit Popup | (Free) GDPR Compliance" version 9.5.0
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yeloni-free-exit-popup.php" instead of "yetience-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected15,913 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,4591,4436,319
CSS38976964,335
SVG2002,959
HTML412252851,776
PHP6160128421
JSON840103

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods728.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
41 PNG files occupy 0.21MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
common/images/social-icons/round/whatsapp.png8.71KB3.20KB▼ 63.29%
admin-interface/images/goal-icons/email.png1.30KB1.19KB▼ 8.48%
admin-interface/images/admin-icons/cross.png3.02KB0.44KB▼ 85.44%
admin-interface/images/social.png0.70KB0.59KB▼ 15.59%
common/images/social-icons/round/twitter.png4.94KB2.74KB▼ 44.41%