94% popup-on-click

Code Review | Popup on Click

WordPress plugin Popup on Click scored 94% from 54 tests.

About plugin

  • Plugin page: popup-on-click
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 5.9.2
  • First release: Jun 15, 2017
  • Latest release: Jun 15, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ygrebnov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 630 total downloads


Plugin footprint Passed 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼294.55ms] Passed 4 tests

This is a short check of server-side resources used by Popup on Click
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1551.71 ▲3.03
Dashboard /wp-admin3.52 ▲0.1032.32 ▼2.51
Posts /wp-admin/edit.php3.74 ▲0.1035.45 ▼1.44
Add New Post /wp-admin/post-new.php6.98 ▲0.0092.19 ▼1,171.76
Media Library /wp-admin/upload.php3.39 ▲0.0924.62 ▼2.49
Popup on Click /wp-admin/options-general.php?page=popup-on-click3.3623.72

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Popup on Click
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,926 ▲17216.29 ▲0.3013.47 ▲7.402.91 ▲0.34
Dashboard /wp-admin2,897 ▲366.22 ▲0.08118.59 ▼13.62157.92 ▼8.09
Posts /wp-admin/edit.php2,696 ▲53.23 ▼0.1365.93 ▲2.67138.69 ▼3.73
Add New Post /wp-admin/post-new.php1,755 ▲5721.01 ▼1.56461.86 ▲37.83172.33 ▲17.42
Media Library /wp-admin/upload.php1,703 ▲95.48 ▼0.06148.47 ▼16.35194.77 ▼19.49
Popup on Click /wp-admin/options-general.php?page=popup-on-click1,0822.4058.15127.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/popup-on-click/admin/partials/popup-on-click-admin-display.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: popup on click, popup-on-click, fade in popup, popup, bootstrap modal...

popup-on-click/popup-on-click.php Passed 13 tests

The primary PHP file in "Popup on Click" version 1.0.0 is used by WordPress to initiate all plugin functionality
105 characters long description:
Plugin provides a possibility to display content in a popup window after user clicks on a triggering link

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 detected335 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

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.06
Average class complexity2.20
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin