83% upcoming-concerts-sports-and-theater-widget

Code Review | Rukkus Concerts, Sports, and Theater Listings - Content Reader and Ticket Widget

WordPress plugin Rukkus Concerts, Sports, and Theater Listings - Content Reader and Ticket Widget scored 83% from 54 tests.

About plugin

  • Plugin page: upcoming-concerts...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Dec 21, 2016
  • Number of updates: 40
  • Update frequency: every 28.9 days
  • Top authors: CraigKleila (90%)manick.bhan (12.5%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,823 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▲35.95ms] Passed 4 tests

This is a short check of server-side resources used by Rukkus Concerts, Sports, and Theater Listings - Content Reader and Ticket Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.00390.02 ▲345.50
Dashboard /wp-admin3.31 ▲0.0044.48 ▼3.79
Posts /wp-admin/edit.php3.36 ▲0.0045.94 ▼2.76
Add New Post /wp-admin/post-new.php4.60 ▼1.29250.93 ▲150.37
Media Library /wp-admin/upload.php3.23 ▲0.0033.91 ▼0.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
recovery_mode_email_last_sent
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rukkus Concerts, Sports, and Theater Listings - Content Reader and Ticket Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,682 ▼5313.24 ▼1.071.02 ▼1.5020.41 ▼27.27
Dashboard /wp-admin2,208 ▲204.88 ▼1.01107.72 ▼2.7140.03 ▼6.63
Posts /wp-admin/edit.php2,094 ▲22.03 ▼0.0239.03 ▼0.9035.54 ▼3.57
Add New Post /wp-admin/post-new.php45 ▼1,4910.44 ▼22.880.06 ▼658.9211.13 ▼54.42
Media Library /wp-admin/upload.php1,387 ▼44.20 ▼0.06100.57 ▼5.7974.08 ▲29.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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 50% 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 items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/upcoming-concerts-sports-and-theater-widget/basic.php on line 14
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/upcoming-concerts-sports-and-theater-widget/basic.php on line 14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/upcoming-concerts-sports-and-theater-widget/basic.php on line 14
    • > PHP Warning
      include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/upcoming-concerts-sports-and-theater-widget/basic.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/upcoming-concerts-sports-and-theater-widget/basic.php:160

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 (The widget in action on https://blog.rukkus.com, listing upcoming concerts, festivals, sporting events, theater performances, and shows near the reader.), #2 (The widget on another blog showing upcoming concert listings automatically using colors and styles from another blog to style itself.), #3 (Concerts in another skin.), #4 (Concerts in another skin.), #5 (Concerts in another skin.), #6 (Concerts in another skin.), #7 (The concert listings showing shows related to an article's content.)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

upcoming-concerts-sports-and-theater-widget/basic.php 92% from 13 tests

The main PHP script in "Rukkus Concerts, Sports, and Theater Listings - Content Reader and Ticket Widget" version 1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("upcoming-concerts-sports-and-theater-widget.php" instead of "basic.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin278 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1257145
PHP11910133

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.69MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png63.08KB18.95KB▼ 69.96%
screenshot-3.png23.25KB7.60KB▼ 67.33%
screenshot-1.png63.09KB20.82KB▼ 67.00%
screenshot-4.png24.97KB8.34KB▼ 66.62%
screenshot-5.png24.46KB7.83KB▼ 67.99%