10% venuedog-events

Code Review | VenueDog Events

WordPress plugin VenueDog Events scored10%from 54 tests.

About plugin

  • Plugin page: venuedog-events
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.1-3.1.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2012
  • Latest release: Aug 2, 2013
  • Number of updates: 14
  • Update frequency: every 34.8 days
  • Top authors: richard_steeleagency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /963 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/venuedog-events/lib/widget.venuedog.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; VenueDog_Widget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼49.46ms] Passed 4 tests

Analyzing server-side resources used by VenueDog Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.72 ▼35.40
Dashboard /wp-admin2.09 ▼1.216.15 ▼44.16
Posts /wp-admin/edit.php2.09 ▼1.265.48 ▼39.79
Add New Post /wp-admin/post-new.php2.09 ▼3.796.71 ▼78.49
Media Library /wp-admin/upload.php2.09 ▼1.146.28 ▼28.58

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_venuedog

Browser metrics Passed 4 tests

VenueDog Events: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18014.33 ▼0.057.75 ▲5.8241.36 ▼8.82
Dashboard /wp-admin2,225 ▲375.83 ▲0.9596.33 ▼10.7838.10 ▲0.26
Posts /wp-admin/edit.php2,105 ▲342.06 ▲0.0438.98 ▼7.3234.77 ▲0.08
Add New Post /wp-admin/post-new.php1,550 ▲818.54 ▲0.27651.46 ▲39.9064.34 ▲15.04
Media Library /wp-admin/upload.php1,404 ▲194.20 ▼0.0393.85 ▼13.6940.51 ▼3.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/venuedog-events/lib/widget.venuedog.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; VenueDog_Widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_venuedog
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/venuedog-events/admin/global_options.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/venuedog-events/lib/widget.venuedog.php:6
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/venuedog-events/venuedog.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/venuedog-events/lib/widget.venuedog.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (VenueDog), #2 (VenueDog Events Widget)
You can look at the official readme.txt

venuedog-events/venuedog.php 92% from 13 tests

"VenueDog Events" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("venuedog-events.php" instead of "venuedog.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected399 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33421163
PHP510338157
CSS11138
Markdown110023
HTML111018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.52MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/poweredby.png2.38KB1.89KB▼ 20.83%
screenshot-2.png25.99KB8.39KB▼ 67.73%
images/arrow.png0.18KB0.13KB▼ 30.69%
screenshot-1.png506.72KB180.48KB▼ 64.38%