84% onclick-show-popup

Code Review | Onclick show popup

WordPress plugin Onclick show popup scored84%from 54 tests.

About plugin

  • Plugin page: onclick-show-popup
  • Plugin version: 8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 18, 2011
  • Latest release: Oct 29, 2023
  • Number of updates: 41
  • Update frequency: every 105.7 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /43,918 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: ▼20.70ms] Passed 4 tests

Server-side resources used by Onclick show popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0152.06 ▼21.90
Dashboard /wp-admin3.32 ▲0.0168.66 ▼47.33
Posts /wp-admin/edit.php3.37 ▲0.0161.21 ▼17.88
Add New Post /wp-admin/post-new.php5.90 ▲0.01133.07 ▲5.47
Media Library /wp-admin/upload.php3.24 ▲0.0148.59 ▲4.32
Onclick show popup /wp-admin/options-general.php?page=onclick-show-popup3.2865.05

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 52 new files
Database: 1 new table, 11 new options
New tables
wp_onclick_show_popup
New WordPress options
widget_recent-comments
OnclickShowPopup_random
theysaidso_admin_options
OnclickShowPopup_title_yes
OnclickShowPopup_theme
widget_recent-posts
OnclickShowPopup_title
can_compress_scripts
widget_theysaidso_widget
OnclickShowPopup_widget
...

Browser metrics Passed 4 tests

Onclick show popup: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15014.52 ▲0.256.32 ▲3.5159.08 ▼25.34
Dashboard /wp-admin2,199 ▲285.70 ▲0.05146.71 ▼50.6063.89 ▼18.84
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0858.67 ▼19.1355.50 ▼27.47
Add New Post /wp-admin/post-new.php1,407 ▲317.81 ▼0.041,013.72 ▲187.5863.77 ▲7.13
Media Library /wp-admin/upload.php1,401 ▲44.17 ▲0.00167.69 ▼5.1967.07 ▲3.66
Onclick show popup /wp-admin/options-general.php?page=onclick-show-popup9831.9936.3436.67

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

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/onclick-show-popup/pages/content-management-add.php
    • > /wp-content/plugins/onclick-show-popup/pages/content-management-edit.php
    • > /wp-content/plugins/onclick-show-popup/pages/content-management-show.php
    • > /wp-content/plugins/onclick-show-popup/pages/content-setting.php
    • > /wp-content/plugins/onclick-show-popup/onclick-show-popup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: popup, onclick, prettyphoto

onclick-show-popup/onclick-show-popup.php 92% from 13 tests

The principal PHP file in "Onclick show popup" v. 8.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 202 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,970 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP610033853
JavaScript218695676
PO File2114174271
CSS100170

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/prettyPhoto/facebook/contentPatternLeft.png0.13KB0.10KB▼ 24.82%
images/prettyPhoto/light_square/btnPrevious.png1.41KB1.19KB▼ 15.74%
images/prettyPhoto/dark_rounded/sprite.png3.98KB2.56KB▼ 35.79%
images/prettyPhoto/facebook/btnPrevious.png0.81KB0.58KB▼ 27.90%
images/prettyPhoto/default/sprite_next.png1.33KB0.39KB▼ 70.69%