62% ultimate-maps-by-supsystic

Code Review | Ultimate Maps by Supsystic

WordPress plugin Ultimate Maps by Supsystic scored62%from 54 tests.

About plugin

  • Plugin page: ultimate-maps-by-...
  • Plugin version: 1.2.14
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 18, 2018
  • Latest release: Sep 14, 2023
  • Number of updates: 61
  • Update frequency: every 29.4 days
  • Top authors: supsystic.com (100%)

Code review

54 tests

User reviews

81 reviews

Install metrics

10,000+ active /205,396 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
This plugin's installer ran successfully

Server metrics [RAM: ▲1.98MB] [CPU: ▲11.60ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Maps by Supsystic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.63 ▲2.1656.17 ▲16.78
Dashboard /wp-admin5.25 ▲1.9564.05 ▲12.07
Posts /wp-admin/edit.php5.36 ▲2.0168.01 ▲17.85
Add New Post /wp-admin/post-new.php7.83 ▲1.9597.94 ▼0.32
Media Library /wp-admin/upload.php5.26 ▲2.0355.58 ▲19.41
Settings /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=settings5.3054.79
Overview /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=overview5.64369.89
Marker Categories /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=marker_groups5.3779.43
Add Map /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=maps_add_new7.9266.03
All Maps /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=maps5.5154.06
Maps Import / Export /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=csv5.3655.26
Ultimate Maps by Supsystic /wp-admin/admin.php?page=ultimate-maps-supsystic5.5157.03

Server storage [IO: ▲6.05MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 458 new files
Database: 10 new tables, 10 new options
New tables
wp_ums_modules_type
wp_ums_maps
wp_ums_marker_groups_relation
wp_ums_modules
wp_ums_marker_groups
wp_ums_usage_stat
wp_ums_options
wp_ums_options_categories
wp_ums_icons
wp_ums_markers
New WordPress options
wp_ums_db_version
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
ums_plugin_activation_errors
widget_recent-comments
ums_def_icons_installed
wp_ums_db_installed

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Maps by Supsystic
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.34 ▼0.011.65 ▼0.0541.22 ▲1.40
Dashboard /wp-admin2,249 ▲695.62 ▲0.0091.28 ▼0.9540.99 ▲0.98
Posts /wp-admin/edit.php2,154 ▲572.00 ▲0.0041.41 ▲6.3237.04 ▲2.80
Add New Post /wp-admin/post-new.php1,570 ▲4422.85 ▼0.26668.18 ▲0.2255.68 ▲9.23
Media Library /wp-admin/upload.php1,454 ▲574.18 ▼0.03104.16 ▼1.0544.05 ▼1.61
Settings /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=settings1,5193.5256.8096.47
Overview /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=overview2,80221.01552.8099.57
Marker Categories /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=marker_groups1,3223.8250.42100.65
Add Map /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=maps_add_new4,64210.82218.08197.35
All Maps /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=maps1,7474.6068.41123.45
Maps Import / Export /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=csv1,3733.8246.2677.18
Ultimate Maps by Supsystic /wp-admin/admin.php?page=ultimate-maps-supsystic1,7474.7669.6174.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
  • Zombie tables were found after uninstall: 10 tables
    • wp_ums_marker_groups
    • wp_ums_maps
    • wp_ums_icons
    • wp_ums_modules
    • wp_ums_modules_type
    • wp_ums_usage_stat
    • wp_ums_markers
    • wp_ums_marker_groups_relation
    • wp_ums_options_categories
    • wp_ums_options
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • ums_def_icons_installed
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • wp_ums_db_version
    • theysaidso_admin_options
    • db_upgraded
    • wp_ums_db_installed
    • can_compress_scripts
    • ums_plugin_activation_errors

Smoke tests 25% from 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 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ultimate-maps-by-supsystic/modules/supsystic_promo/views/tpl/adminFooter.php
    • > /wp-content/plugins/ultimate-maps-by-supsystic/modules/maps_widget/views/tpl/widget.php
  • 89× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'baseObjectUms' not found in wp-content/plugins/ultimate-maps-by-supsystic/classes/view.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'tableUms' not found in wp-content/plugins/ultimate-maps-by-supsystic/classes/tables/modules.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-maps-by-supsystic/modules/supsystic_promo/views/tpl/adminPromoTabContent.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'tableUms' not found in wp-content/plugins/ultimate-maps-by-supsystic/classes/tables/options.php:2
    • > PHP Warning
      Use of undefined constant UMS_PLUGINS_URL - assumed 'UMS_PLUGINS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-maps-by-supsystic/modules/supsystic_promo/views/tpl/overviewTabContent.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'moduleUms' not found in wp-content/plugins/ultimate-maps-by-supsystic/modules/maps/mod.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'frameUms' not found in wp-content/plugins/ultimate-maps-by-supsystic/modules/maps/views/tpl/mapsEditHeatmap.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-maps-by-supsystic/config.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ultimate-maps-by-supsystic/config.php:23
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-maps-by-supsystic/modules/maps/views/tpl/mapsMapStyles.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=overview
    • > Network (severe)
    wp-content/plugins/ultimate-maps-by-supsystic/assets/js/jquery.slimscroll.js?ver=1.2.14 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=overview
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).slimScroll is not a function" "TypeError: jQuery(...).slimScroll is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ultimate-maps-by-supsystic/modules/supsystic_promo/js/admin.overview.js?ver=1.2.14:14:45)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=ultimate-maps-supsystic&tab=overview
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).slimScroll is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

ultimate-maps-by-supsystic/ums.php 92% from 13 tests

"Ultimate Maps by Supsystic" version 1.2.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultimate-maps-by-supsystic.php" instead of "ums.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin36,441 lines of code in 247 files:
LanguageFilesBlank linesComment linesLines of code
PHP1075212,82413,544
JavaScript1026122,81613,071
CSS342313004,244
PO File21,0781,3652,674
SVG1002,671
JSON100237

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity26.09
▷ Minimum class complexity1.00
▷ Maximum class complexity182.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes78
▷ Abstract classes78.97%
▷ Concrete classes7191.03%
▷ Final classes00.00%
Methods899
▷ Static methods24026.70%
▷ Public methods80289.21%
▷ Protected methods525.78%
▷ Private methods455.01%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants77
▷ Global constants6381.82%
▷ Class constants1418.18%
▷ Public constants14100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
182 PNG files occupy 0.97MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
modules/icons/icons_files/def_icons/blue_orifice.png2.21KB1.78KB▼ 19.75%
modules/supsystic_promo/img/overview-03.png258.26KB78.45KB▼ 69.62%
img/buttonsPlusMinus.png2.81KB0.17KB▼ 93.88%
modules/icons/icons_files/def_icons/blue_home.png3.58KB2.03KB▼ 43.21%