72% last-tap-events

Code Review | Last Tap Events

WordPress plugin Last Tap Events scored72%from 54 tests.

About plugin

  • Plugin page: last-tap-events
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 6.3.1
  • First release: Oct 18, 2019
  • Latest release: Aug 2, 2020
  • Number of updates: 210
  • Update frequency: every 1.4 days
  • Top authors: Marcio Zebedeu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,183 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: ▲1.31MB] [CPU: ▲5.18ms] Passed 4 tests

Server-side resources used by Last Tap Events
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.75 ▲1.2950.55 ▲2.32
Dashboard /wp-admin4.63 ▲1.3367.50 ▲16.07
Posts /wp-admin/edit.php4.69 ▲1.3463.74 ▲4.78
Add New Post /wp-admin/post-new.php7.20 ▲1.3299.39 ▼2.44
Media Library /wp-admin/upload.php4.54 ▲1.3155.34 ▲19.93
LT PDF Generator /wp-admin/tools.php?page=event_pdf4.5547.77
Participants /wp-admin/edit.php?post_type=participant4.6154.77
Add New /wp-admin/post-new.php?post_type=participant4.6560.79
Add New /wp-admin/post-new.php?post_type=event7.19111.32
All Events /wp-admin/edit.php?post_type=event4.6154.57
Membership Manager /wp-admin/admin.php?page=event_membership4.5449.22

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 337 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_event_location_widget
db_upgraded
widget_recent-comments
event_plugin
event_plugin_cpt
widget_theysaidso_widget
can_compress_scripts
event_plugin_tax
widget_recent-posts

Browser metrics Passed 4 tests

Last Tap Events: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,541 ▲75529.40 ▲15.3954.89 ▲52.8829.30 ▼12.43
Dashboard /wp-admin2,542 ▲36512.18 ▲6.52169.96 ▲75.6545.94 ▲4.47
Posts /wp-admin/edit.php2,492 ▲39211.11 ▲9.08104.19 ▲63.7432.55 ▼6.55
Add New Post /wp-admin/post-new.php6,461 ▲4,93523.03 ▼0.79710.74 ▲86.6838.17 ▼13.63
Media Library /wp-admin/upload.php1,626 ▲22312.33 ▲8.17134.16 ▲30.7747.24 ▼3.07
LT PDF Generator /wp-admin/tools.php?page=event_pdf1,19512.79105.2726.87
Participants /wp-admin/edit.php?post_type=participant1,54411.02112.4032.32
Add New /wp-admin/post-new.php?post_type=participant2,13312.39238.0375.17
Add New /wp-admin/post-new.php?post_type=event6,73221.94768.5536.16
All Events /wp-admin/edit.php?post_type=event1,57711.09109.9933.10
Membership Manager /wp-admin/admin.php?page=event_membership1,17812.8498.1427.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% 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 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/last-tap-events/last-tap-plugin.php
    • > /wp-content/plugins/last-tap-events/tests/bootstrap.php
  • 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/last-tap-events/templates/register.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/last-tap-events/tests/test-sample.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/last-tap-events/templates/auth.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/last-tap-events/page-templates/event-template.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/last-tap-events/templates/contact-form.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'FPDF' not found in wp-content/plugins/last-tap-events/inc/api/LastTap_Pdf.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/last-tap-events/templates/email.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/last-tap-events/page-templates/location-template.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/last-tap-events/page-templates/single-event.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/last-tap-events/page-templates/event-membership.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=event_membership
    • > Network (severe)
    wp-content/plugins/last-tap-events/node_modules/code-prettify/styles/desert.css - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

last-tap-events/last-tap-plugin.php 77% from 13 tests

This is the main PHP file of "Last Tap Events" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("last-tap-events.php" instead of "last-tap-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin50,234 lines of code in 287 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1221,9013,56834,402
PHP831,4939948,498
TypeScript11125373,534
CSS205173322,570
JSON1300402
Sass8460309
SVG1253201
Bourne Shell12111123
Markdown1358084
HTML211080
XML20031

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity337.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes44
▷ Abstract classes00.00%
▷ Concrete classes44100.00%
▷ Final classes36.82%
Methods346
▷ Static methods92.60%
▷ Public methods29886.13%
▷ Protected methods3810.98%
▷ Private methods102.89%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon/Google_Calendar_icon-icons.com_75710.png5.97KB3.17KB▼ 46.91%
assets/images/no-image-available-icon-6.png17.14KB7.95KB▼ 53.65%