77% slick-popup

Code Review | Slick Popup: Contact Form 7 Popup Plugin

WordPress plugin Slick Popup: Contact Form 7 Popup Plugin scored77%from 54 tests.

About plugin

  • Plugin page: slick-popup
  • Plugin version: 1.7.15
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Oct 27, 2023
  • Number of updates: 175
  • Update frequency: every 18.6 days
  • Top authors: ak.singla (96.57%)tjomak (4%)

Code review

54 tests

User reviews

22 reviews

Install metrics

3,000+ active /69,588 total downloads

Benchmarks

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

Server metrics [RAM: ▲3.79MB] [CPU: ▲29.57ms] 75% from 4 tests

An overview of server-side resources used by Slick Popup: Contact Form 7 Popup Plugin
It is recommended to improve the following
  • RAM: The total memory usage must be kept under 10MB (currently 17.26MB on /wp-admin/admin.php?page=slick-options)
PageMemory (MB)CPU Time (ms)
Home /15.39 ▲11.9382.18 ▲45.49
Dashboard /wp-admin7.08 ▲3.7478.79 ▲16.43
Posts /wp-admin/edit.php7.14 ▲3.7884.34 ▲40.26
Add New Post /wp-admin/post-new.php9.71 ▲3.82127.66 ▲23.49
Media Library /wp-admin/upload.php7.03 ▲3.8072.17 ▲38.09
Redux /wp-admin/options-general.php?page=redux-framework7.0465.33
Help and Support /wp-admin/admin.php?page=splite-help-and-support7.0066.37
Slick Popup Lite /wp-admin/admin.php?page=slick-options17.26215.51
Import Demos /wp-admin/admin.php?page=splite-import-demos7.0070.32
Install Plugins /wp-admin/admin.php?page=splite_required7.0365.37

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,071 new files
Database: no new tables, 10 new options
New WordPress options
splite_install_date
can_compress_scripts
splite_opts-transients
db_upgraded
widget_recent-comments
splite_opts
widget_recent-posts
theysaidso_admin_options
splite_delete_data
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Slick Popup: Contact Form 7 Popup Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,218 ▲45713.73 ▼0.8321.45 ▲19.8662.20 ▲21.06
Dashboard /wp-admin2,301 ▲1245.65 ▲0.0587.06 ▲0.6883.22 ▲41.99
Posts /wp-admin/edit.php2,245 ▲1482.22 ▲0.2535.71 ▼0.2737.91 ▲0.72
Add New Post /wp-admin/post-new.php1,601 ▲7518.35 ▼4.70651.89 ▲64.6661.07 ▲12.81
Media Library /wp-admin/upload.php1,464 ▲674.26 ▲0.08103.88 ▲0.7288.19 ▲44.99
Redux /wp-admin/options-general.php?page=redux-framework1,0753.3681.5797.25
Help and Support /wp-admin/admin.php?page=splite-help-and-support1,5511.8627.1673.56
Slick Popup Lite /wp-admin/admin.php?page=slick-options3,69910.31182.39246.01
Import Demos /wp-admin/admin.php?page=splite-import-demos1,0141.8427.7550.95
Install Plugins /wp-admin/admin.php?page=splite_required1,0282.0725.6431.02

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
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • splite_opts-transients
    • splite_opts
    • splite_delete_data
    • splite_install_date
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 53× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/inc/fields/background/field_background.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/inc/fields/select/field_select.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/inc/fields/typography/field_typography.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/core/dashboard.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/inc/fields/media/field_media.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/core/panel.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/inc/fields/radio/field_radio.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/templates/panel/menu-container.tpl.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/inc/fields/text/field_text.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/slick-popup/libs/admin/redux-framework/redux-core/inc/fields/ace_editor/field_ace_editor.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=splite-import-demos
    • > Network (severe)
    wp-content/plugins/slick-popup/libs/js/img/subscribe.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=splite-import-demos
    • > Network (severe)
    wp-content/plugins/slick-popup/libs/js/img/unsubscribe.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: popup form, submit form, popup contact form 7, wordpress popup plugin, popup...

slick-popup/slick-popup.php 92% from 13 tests

The main PHP script in "Slick Popup: Contact Form 7 Popup Plugin" version 1.7.15 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 156 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin148,400 lines of code in 703 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15315,64513,13760,637
PHP3099,13217,02641,509
CSS1177,27437314,158
JSON40012,849
Sass981,8727912,608
SVG1777136,221
Markdown3990351
HTML17060
XML1007

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 110)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity33.82
▷ Minimum class complexity1.00
▷ Maximum class complexity322.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity110.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes188
▷ Abstract classes42.13%
▷ Concrete classes18497.87%
▷ Final classes00.00%
Methods1,346
▷ Static methods30822.88%
▷ Public methods1,04377.49%
▷ Protected methods17212.78%
▷ Private methods1319.73%
Functions80
▷ Named functions7492.50%
▷ Anonymous functions67.50%
Constants119
▷ Global constants65.04%
▷ Class constants11394.96%
▷ Public constants113100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
78 PNG files occupy 1.26MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/admin/redux-framework/redux-core/assets/img/3cl.png0.34KB0.33KB0.29%
libs/admin/redux-framework/redux-core/assets/img/raw/3cl.png3.08KB0.33KB▼ 89.13%
libs/admin/img/menu_icon.png1.34KB0.80KB▼ 40.60%
libs/admin/redux-framework/redux-core/assets/img/raw/2-col-portfolio.png1.02KB0.15KB▼ 85.07%
libs/admin/redux-framework/redux-core/assets/img/raw/1col.png2.83KB0.14KB▼ 95.13%