62% popup-by-supsystic

Code Review | Popup by Supsystic

WordPress plugin Popup by Supsystic scored62%from 54 tests.

About plugin

  • Plugin page: popup-by-supsystic
  • Plugin version: 1.10.25
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 24, 2015
  • Latest release: Oct 30, 2023
  • Number of updates: 242
  • Update frequency: every 13.2 days
  • Top authors: supsystic.com (100%)

Code review

54 tests

User reviews

334 reviews

Install metrics

10,000+ active /1,364,308 total downloads

Benchmarks

Plugin footprint 65% 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: ▲2.96MB] [CPU: ▲16.83ms] Passed 4 tests

This is a short check of server-side resources used by Popup by Supsystic
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /6.31 ▲2.8565.30 ▲23.87
Dashboard /wp-admin6.34 ▲2.9972.73 ▲11.74
Posts /wp-admin/edit.php6.39 ▲3.0371.27 ▲24.55
Add New Post /wp-admin/post-new.php8.87 ▲2.98101.90 ▲7.17
Media Library /wp-admin/upload.php6.25 ▲3.0278.31 ▲45.59
PopUp by Supsystic /wp-admin/admin.php?page=popup-wp-supsystic6.2779.09
Overview /wp-admin/admin.php?page=popup-wp-supsystic&tab=overview6.4281.36
Show All PopUps /wp-admin/admin.php?page=popup-wp-supsystic&tab=popup6.7778.31
Add New PopUp /wp-admin/admin.php?page=popup-wp-supsystic&tab=popup_add_new7.0682.07
Settings /wp-admin/admin.php?page=popup-wp-supsystic&tab=settings6.4368.40

Server storage [IO: ▲19.64MB] [DB: ▲0.57MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 735 new files
Database: 9 new tables, 15 new options
New tables
wp_pps_statistics
wp_pps_countries
wp_pps_modules_type
wp_pps_usage_stat
wp_pps_popup_show_categories
wp_pps_popup
wp_pps_modules
wp_pps_subscribers
wp_pps_popup_show_pages
New WordPress options
pps_plugin_activation_errors
pps_plug_was_used
theysaidso_admin_options
pps_txt_files_css_updated
db_upgraded
wp_pps_db_installed
pps_opts_data
widget_theysaidso_widget
pps_stats_recalculated
pps_txt_files_css_updated_2
...

Browser metrics Passed 4 tests

An overview of browser requirements for Popup by Supsystic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10314.35 ▲0.091.88 ▲0.3643.35 ▲2.22
Dashboard /wp-admin2,249 ▲695.78 ▲0.1194.94 ▼3.6242.10 ▼2.25
Posts /wp-admin/edit.php2,157 ▲542.24 ▲0.2334.94 ▼10.5928.96 ▼5.95
Add New Post /wp-admin/post-new.php2,009 ▲48322.38 ▼0.80654.12 ▲25.1529.45 ▼19.76
Media Library /wp-admin/upload.php1,457 ▲604.44 ▲0.27108.09 ▲5.8142.33 ▼0.44
PopUp by Supsystic /wp-admin/admin.php?page=popup-wp-supsystic2,04110.11309.84126.54
Overview /wp-admin/admin.php?page=popup-wp-supsystic&tab=overview3,14917.45548.4998.41
Show All PopUps /wp-admin/admin.php?page=popup-wp-supsystic&tab=popup2,1335.4789.94102.01
Add New PopUp /wp-admin/admin.php?page=popup-wp-supsystic&tab=popup_add_new2,8204.1276.83190.14
Settings /wp-admin/admin.php?page=popup-wp-supsystic&tab=settings2,2974.9374.9688.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 3 tables
    • wp_pps_popup_show_categories
    • wp_pps_popup
    • wp_pps_countries
  • Zombie WordPress options detected upon uninstall: 13 options
    • pps_plugin_activation_errors
    • pps_txt_files_css_updated
    • widget_recent-posts
    • pps_txt_files_css_updated_2
    • can_compress_scripts
    • pps_stats_recalculated
    • pps_last_check_love_link
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • ...

Smoke tests 25% 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 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/popup-by-supsystic/modules/supsystic_promo/views/tpl/adminFooter.php
  • 227× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Print' not found in wp-content/plugins/popup-by-supsystic/classes/Twig/Node/SandboxedPrint.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/popup-by-supsystic/classes/Twig/Node/Expression/Binary/Sub.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig_TokenParserBrokerInterface' not found in wp-content/plugins/popup-by-supsystic/classes/Twig/TokenParserBroker.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/popup-by-supsystic/classes/Twig/Node/Expression/Binary/Equal.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/popup-by-supsystic/classes/Twig/Node/AutoEscape.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/popup-by-supsystic/classes/Twig/Node/Expression/Unary/Pos.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/popup-by-supsystic/classes/Twig/TokenParser/Do.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/popup-by-supsystic/classes/Twig/Node/BlockReference.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'modelPps' not found in wp-content/plugins/popup-by-supsystic/modules/supsystic_promo/models/supsystic_promo.php:2
    • > PHP Warning
      Use of undefined constant PPS_PLUGINS_URL - assumed 'PPS_PLUGINS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-by-supsystic/modules/supsystic_promo/views/tpl/overviewTabContent.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=popup-wp-supsystic&tab=popup_add_new
    • > Network (severe)
    wp-content/plugins/popup-by-supsystic/assets/css/magic.min.css?ver=1.10.25 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: pop-up, popup builder, social popup, popover, popup maker...

popup-by-supsystic/pps.php 85% from 13 tests

The main file in "Popup by Supsystic" v. 1.10.25 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("popup-by-supsystic.php" instead of "pps.php")
  • Description: The description should be shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected90,926 lines of code in 442 files:
LanguageFilesBlank linesComment linesLines of code
PO File1514,15220,42043,909
PHP2863,0489,27027,629
JavaScript1014041,85112,322
CSS392133264,395
SVG1002,671

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity17.42
▷ Minimum class complexity1.00
▷ Maximum class complexity426.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces1
Interfaces19
Traits0
Classes239
▷ Abstract classes197.95%
▷ Concrete classes22092.05%
▷ Final classes00.00%
Methods1,861
▷ Static methods28115.10%
▷ Public methods1,62287.16%
▷ Protected methods1749.35%
▷ Private methods653.49%
Functions85
▷ Named functions8195.29%
▷ Anonymous functions44.71%
Constants136
▷ Global constants8159.56%
▷ Class constants5540.44%
▷ Public constants55100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
208 compressed PNG files occupy 7.16MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/popup/img/preview/nature.png32.18KB34.29KB0.00%
assets/popup/img/assets/close_btns/close-red-in-circle.png0.48KB0.49KB0.00%
assets/popup/img/preview/x-mas-sale.png14.89KB15.47KB0.00%
assets/popup/img/assets/classy/bullet__blue.png0.33KB0.33KB0.00%
modules/sm/img/Googleplus-boxy.png2.30KB1.96KB▼ 14.75%