90% popup-events-tracker-for-elementor

Code Review | Popup Events Tracker for Elementor Pro

WordPress plugin Popup Events Tracker for Elementor Pro scored90%from 54 tests.

About plugin

  • Plugin page: popup-events-trac...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: May 27, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: ParasShah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /710 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Popup Events Tracker for Elementor Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.50 ▼7.34
Dashboard /wp-admin3.32 ▲0.0146.26 ▲1.23
Posts /wp-admin/edit.php3.37 ▲0.0146.04 ▼14.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.46 ▼19.48
Media Library /wp-admin/upload.php3.24 ▲0.0134.19 ▲1.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Popup Events Tracker for Elementor Pro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▲0.004.33 ▲0.0641.38 ▼7.96
Dashboard /wp-admin2,206 ▲185.80 ▼0.23102.01 ▲0.0840.51 ▼4.40
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0340.11 ▼1.2935.91 ▼1.40
Add New Post /wp-admin/post-new.php1,533 ▲423.40 ▲5.10670.63 ▲18.6060.98 ▲6.42
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0198.14 ▼5.9542.35 ▼1.52

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: events tracking, google analytics, elementor

popup-events-tracker-for-elementor/popup-events-tracker-for-elementor.php Passed 13 tests

The main file in "Popup Events Tracker for Elementor Pro" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Track Elementor Popup events in Google Analytics.

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
Success! There were no dangerous files found in this plugin169 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4241993
JavaScript124076

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin