10% stubwirecom-event-manager

Code Review | StubWire.com Event Manager

WordPress plugin StubWire.com Event Manager scored10%from 54 tests.

About plugin

  • Plugin page: stubwirecom-event...
  • Plugin version: 10...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 9, 2013
  • Latest release: Jan 21, 2013
  • Number of updates: 7
  • Update frequency: every 4.4 days
  • Top authors: redbrad0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/stubwirecom-event-manager/stubwire_widget.class.php+83
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.15ms] Passed 4 tests

An overview of server-side resources used by StubWire.com Event Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.03 ▼2.68
Dashboard /wp-admin3.31 ▲0.0048.09 ▼5.64
Posts /wp-admin/edit.php3.36 ▲0.0051.33 ▼2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.02 ▼18.23
Media Library /wp-admin/upload.php3.23 ▲0.0036.58 ▲0.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for StubWire.com Event Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.391.72 ▼0.2240.23 ▼1.85
Dashboard /wp-admin2,206 ▲214.86 ▼1.00100.19 ▼5.0440.57 ▼2.98
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0141.14 ▲0.5936.08 ▼0.53
Add New Post /wp-admin/post-new.php1,514 ▼817.73 ▼5.49665.18 ▲0.5058.09 ▲0.04
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0699.05 ▼6.9341.93 ▼4.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 12× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/stubwirecom-event-manager/views/admin-templates.php
    • > /wp-content/plugins/stubwirecom-event-manager/10/views/admin-import-events.php
    • > /wp-content/plugins/stubwirecom-event-manager/views/admin-events.php
    • > /wp-content/plugins/stubwirecom-event-manager/10/views/admin-stats.php
    • > /wp-content/plugins/stubwirecom-event-manager/views/admin-stats.php
    • > /wp-content/plugins/stubwirecom-event-manager/views/admin-import-events.php
    • > /wp-content/plugins/stubwirecom-event-manager/templates/default_widget_listing.php
    • > /wp-content/plugins/stubwirecom-event-manager/views/admin-template.php
    • > /wp-content/plugins/stubwirecom-event-manager/10/views/admin-templates.php
    • > /wp-content/plugins/stubwirecom-event-manager/10/views/admin-template.php
  • 54× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: pageHTML_Header in wp-content/plugins/stubwirecom-event-manager/10/views/admin-stats.php on line 44
    • > PHP Notice
      Undefined variable: pageHTML_Body in wp-content/plugins/stubwirecom-event-manager/views/admin-events.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stubwirecom-event-manager/stubwire.class.php:333
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/stubwirecom-event-manager/10/views/admin-settings.php:4
    • > PHP Warning
      Use of undefined constant STUBWIRE_API_URL - assumed 'STUBWIRE_API_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/stubwirecom-event-manager/10/stubwire.class.php on line 326
    • > PHP Notice
      Undefined variable: pageHTML_Body in wp-content/plugins/stubwirecom-event-manager/10/views/admin-templates.php on line 3
    • > PHP Notice
      Undefined variable: pageHTML_Footer in wp-content/plugins/stubwirecom-event-manager/views/admin-events.php on line 94
    • > PHP Notice
      Undefined variable: pageHTML_Footer in wp-content/plugins/stubwirecom-event-manager/views/admin-stats.php on line 44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/stubwirecom-event-manager/10/views/admin.php:3
    • > PHP Notice
      Undefined variable: currentPageURL in wp-content/plugins/stubwirecom-event-manager/views/admin-events.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid URI ("")
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Stable tag: No string
The official readme.txt might help

stubwirecom-event-manager/stubwirecom-event-manager.php 77% from 13 tests

The principal PHP file in "StubWire.com Event Manager" v. 10... is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 408 characters long)
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "10...")

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
There were no executable files found in this plugin3,071 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP175765853,071

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity86.67
▷ Minimum class complexity7.00
▷ Maximum class complexity243.00
Average method complexity7.38
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods82100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin