10% uvwpintegrations

Code Review | UrVenue

WordPress plugin UrVenue scored10%from 54 tests.

About plugin

  • Plugin page: uvwpintegrations
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 7, 2017
  • Latest release: Feb 27, 2017
  • Number of updates: 18
  • Update frequency: every 3.5 days
  • Top authors: urvenue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /813 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/uvwpintegrations/uvcore/uvcore.functions.php+1223
    Undefined variable: f_money

Server metrics [RAM: ▼1.58MB] [CPU: ▼47.24ms] Passed 4 tests

An overview of server-side resources used by UrVenue
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.41 ▼1.058.61 ▼32.29
Dashboard /wp-admin2.43 ▼0.8711.46 ▼40.01
Posts /wp-admin/edit.php2.43 ▼0.9310.34 ▼39.28
Add New Post /wp-admin/post-new.php2.43 ▼3.4610.05 ▼77.37
Media Library /wp-admin/upload.php2.43 ▼0.808.61 ▼25.66
UrVenue Settings /wp-admin/options-general.php?page=urvenue_settings2.4310.35

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 60 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
uvwp_mapreqid
widget_recent-comments
uvwp_regveaid
uvwp_uvvenueid
widget_theysaidso_widget
db_upgraded
uvwp_venuemarketarea
uvwp_venuename
uvwp_uvserver
...

Browser metrics Passed 4 tests

An overview of browser requirements for UrVenue
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲20514.18 ▼0.2011.17 ▲9.3845.46 ▼0.82
Dashboard /wp-admin2,213 ▲284.88 ▼0.04102.80 ▼22.0238.18 ▼6.30
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0640.59 ▲6.2334.67 ▲2.87
Add New Post /wp-admin/post-new.php1,536 ▲323.44 ▲0.43621.23 ▼43.0557.21 ▼2.13
Media Library /wp-admin/upload.php1,392 ▲14.22 ▼0.0395.06 ▼4.2742.95 ▼1.36
UrVenue Settings /wp-admin/options-general.php?page=urvenue_settings8882.0423.0833.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/uvwpintegrations/uvcore/uvcore.functions.php+1223
    Undefined variable: f_money
  • This plugin does not fully uninstall, leaving 14 options in the database
    • db_upgraded
    • widget_recent-posts
    • uvwp_venuename
    • uvwp_wbcode
    • uvwp_uvvenueid
    • uvwp_regveaid
    • widget_recent-comments
    • uvwp_venuemarketarea
    • widget_theysaidso_widget
    • can_compress_scripts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=urvenue_settings
    • > Notice in wp-content/plugins/uvwpintegrations/uvcore/uvcore.functions.php+1223
    Undefined variable: f_money
    • > GET request to /wp-admin/options-general.php?page=urvenue_settings
    • > Notice in wp-content/plugins/uvwpintegrations/uvwp.functions.php+98
    Undefined variable: uvwp_uvvenueid
    • > GET request to /wp-admin/options-general.php?page=urvenue_settings
    • > Notice in wp-content/plugins/uvwpintegrations/uvwp.functions.php+98
    Undefined variable: uvwp_uvserver
    • > GET request to /wp-admin/options-general.php?page=urvenue_settings
    • > Notice in wp-content/plugins/uvwpintegrations/uvwp.functions.php+243
    Undefined variable: uvrestypeshtml
    • > GET request to /wp-admin/options-general.php?page=urvenue_settings
    • > Notice in wp-content/plugins/uvwpintegrations/uvwp.functions.php+102
    Undefined variable: uvwpvenueinfocard

SRP 0% 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
Please fix the following
  • 17× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.birthdaylist.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/uvmap/map.commingsoon.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/uvmap/uvmap.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.freeguestlist.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.freelist.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.bachelorettelist.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.bachelorlist.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.bottleservicelist.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/templates/3dmap.default.php
    • > /wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.packages.php
  • 93× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: bacheloretteitems in wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.bachelorettelist.php on line 13
    • > PHP Warning
      include_once(): Failed opening '/uvmap/uvmap.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/uvwpintegrations/uvcore/templates/3dmap.default.php on line 7
    • > PHP Notice
      Undefined variable: uv_corepath in wp-content/plugins/uvwpintegrations/uvcore/templates/3dmap.default.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/uvwpintegrations/uvcore/libs/forms.lib.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/uvwpintegrations/uvcore/libs/uvmap.lib.php on line 6
    • > PHP Notice
      Undefined index: uvpkrm in wp-content/plugins/uvwpintegrations/uvcore/loads/uvpackage.pop.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function uv_calendar_get_month() in wp-content/plugins/uvwpintegrations/uvcore/loads/uvcmonth.load.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/uvwpintegrations/uvcore/templates/event.vars.php on line 7
    • > PHP Notice
      Undefined variable: uvlib_global in wp-content/plugins/uvwpintegrations/uvcore/templates/event.vars.php on line 7
    • > PHP Notice
      Undefined variable: diningitems in wp-content/plugins/uvwpintegrations/uvcore/itemstemplates/event.dininglist.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: nightclub, bar, calendar, event, events...

uvwpintegrations/uvwpintegrations.php Passed 13 tests

This is the main PHP file of "UrVenue" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
25 characters long description:
UrVenue Wordpress plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,927 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP397483553,023
SVG1002,671
JavaScript42772922,207
CSS326122,026

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity108.00
▷ Minimum class complexity108.00
▷ Maximum class complexity108.00
Average method complexity5.28
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions61
▷ Named functions61100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.26MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
uvcore/assets/banner-772x250.png254.93KB85.52KB▼ 66.45%
uvcore/assets/images/poweredby.png11.00KB6.00KB▼ 45.48%
uvcore/assets/images/bg.calendardate.png0.77KB0.46KB▼ 40.61%