72% eventscout

Code Review | EventScout

WordPress plugin EventScout scored72%from 54 tests.

About plugin

  • Plugin page: eventscout
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 7, 2019
  • Latest release: Jul 7, 2021
  • Number of updates: 4
  • Update frequency: every 152.2 days
  • Top authors: emazharulislam (50%)engramium (50%)acepressbymicaore (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.46ms] Passed 4 tests

An overview of server-side resources used by EventScout
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1345.18 ▼2.81
Dashboard /wp-admin41.47 ▲38.127,838,931.66 ▲7,838,872.16
Posts /wp-admin/edit.php3.59 ▲0.1951.64 ▼4.51
Add New Post /wp-admin/post-new.php6.20 ▲0.2792.05 ▼10.02
Media Library /wp-admin/upload.php3.40 ▲0.1241.12 ▲3.48
Categories /wp-admin/edit-tags.php?taxonomy=event_scout_category&post_type=event_scout3.3939.89
Tags /wp-admin/edit-tags.php?taxonomy=event_scout_tag&post_type=event_scout3.3940.81
Add New Event /wp-admin/post-new.php?post_type=event_scout6.2092.69
All Events /wp-admin/edit.php?post_type=event_scout3.4438.73

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by EventScout
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲19113.47 ▼0.788.85 ▲6.9842.20 ▼5.73
Dashboard /wp-admin2,247 ▲675.72 ▲0.0591.06 ▼5.1740.02 ▼1.28
Posts /wp-admin/edit.php2,155 ▲552.19 ▲0.1737.07 ▼2.2035.23 ▲1.17
Add New Post /wp-admin/post-new.php1,570 ▲4223.41 ▲0.63680.01 ▲1.4254.09 ▲3.81
Media Library /wp-admin/upload.php1,455 ▲584.35 ▲0.1299.62 ▼8.6841.65 ▼3.33
Categories /wp-admin/edit-tags.php?taxonomy=event_scout_category&post_type=event_scout1,3322.2937.3431.98
Tags /wp-admin/edit-tags.php?taxonomy=event_scout_tag&post_type=event_scout1,3322.4228.3630.87
Add New Event /wp-admin/post-new.php?post_type=event_scout6,24319.51887.9336.85
All Events /wp-admin/edit.php?post_type=event_scout1,1412.1533.1629.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 52 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=event_scout
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 52 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=event_scout
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/eventscout/admin/partials/event-scout-admin-display.php
    • > /wp-content/plugins/eventscout/public/partials/event-scout-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/eventscout/templates/single-event_scout.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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

eventscout/event-scout.php 85% from 13 tests

Analyzing the main PHP file in "EventScout" version 1.0.0
The following require your attention:
  • 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eventscout.php" instead of "event-scout.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin442 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14186570420
CSS341313
JavaScript36559

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.62
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2475.00%
▷ Protected methods00.00%
▷ Private methods825.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin