77% audience1st-ticket-availability

Code Review | Audience1st Ticket Availability

WordPress plugin Audience1st Ticket Availability scored77%from 54 tests.

About plugin

  • Plugin page: audience1st-ticke...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2020
  • Latest release: Mar 31, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: armandofox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /505 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.68ms] Passed 4 tests

A check of server-side resources used by Audience1st Ticket Availability
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0239.99 ▲0.94
Dashboard /wp-admin3.32 ▲0.0247.62 ▼1.04
Posts /wp-admin/edit.php3.37 ▲0.0147.66 ▼2.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.64 ▼15.88
Media Library /wp-admin/upload.php3.24 ▲0.0134.28 ▲1.34
Audience1st Ticket Availability /wp-admin/options-general.php?page=audience1st-ticket-availability-config3.2129.88

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_audience1st_ticket_availability
widget_recent-posts
audience1st_ticket_rss_version
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Audience1st Ticket Availability
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.20 ▼1.091.70 ▼0.6243.81 ▼1.67
Dashboard /wp-admin2,210 ▲285.79 ▼0.12101.09 ▼5.7138.05 ▼7.24
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0340.73 ▼1.0638.05 ▼1.73
Add New Post /wp-admin/post-new.php1,544 ▲1618.29 ▼0.01617.50 ▲11.6649.23 ▼4.94
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0996.34 ▼8.5641.12 ▼4.66
Audience1st Ticket Availability /wp-admin/options-general.php?page=audience1st-ticket-availability-config7872.0727.6729.64

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_audience1st_ticket_availability
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/audience1st-ticket-availability/audience1st_ticket_availability.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audience1st-ticket-availability/audience1st_ticket_availability_menu.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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 your attention: The official readme.txt might help

audience1st-ticket-availability/audience1st_ticket_availability.php 77% from 13 tests

The entry point to "Audience1st Ticket Availability" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("audience1st-ticket-availability.php" instead of "audience1st_ticket_availability.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected258 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33134195
CSS15063

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin