84% upcoming-events-lists

Code Review | Upcoming Events Lists

WordPress plugin Upcoming Events Lists scored84%from 54 tests.

About plugin

  • Plugin page: upcoming-events-l...
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Nov 18, 2023
  • Number of updates: 35
  • Update frequency: every 98.7 days
  • Top authors: sayful (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /35,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.60ms] Passed 4 tests

Server-side resources used by Upcoming Events Lists
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.09 ▼2.40
Dashboard /wp-admin3.36 ▲0.0246.65 ▼12.75
Posts /wp-admin/edit.php3.48 ▲0.1249.20 ▲6.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.62 ▼6.62
Media Library /wp-admin/upload.php3.28 ▲0.0531.18 ▼0.62
Add New /wp-admin/post-new.php?post_type=event3.4143.77
All Events /wp-admin/edit.php?post_type=event3.3337.46

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_sis_upcoming_events
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Upcoming Events Lists: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6014.16 ▼0.191.80 ▼0.0143.89 ▼0.08
Dashboard /wp-admin2,222 ▲415.53 ▼0.1894.31 ▼19.1339.88 ▼2.25
Posts /wp-admin/edit.php2,127 ▲302.00 ▼0.0239.32 ▲2.9036.27 ▼0.82
Add New Post /wp-admin/post-new.php6,387 ▲4,86127.71 ▲4.82901.07 ▲306.0454.10 ▲5.09
Media Library /wp-admin/upload.php1,424 ▲214.22 ▲0.0296.45 ▼1.4964.45 ▲23.29
Add New /wp-admin/post-new.php?post_type=event2,4607.63197.6366.29
All Events /wp-admin/edit.php?post_type=event1,0991.9030.9329.08

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
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_sis_upcoming_events
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=event
    • > Network (severe)
    wp-content/plugins/upcoming-events-lists/assets/css/admin-style.css?ver=1.4.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=event
    • > Network (severe)
    wp-content/plugins/upcoming-events-lists/assets/js/admin.js?ver=1.4.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: events, widget, calendar, feed, upcoming-events

upcoming-events-lists/upcoming-events-lists.php 85% from 13 tests

"Upcoming Events Lists" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,202 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP133307301,200
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.09
▷ Minimum class complexity2.00
▷ Maximum class complexity33.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods98
▷ Static methods1414.29%
▷ Public methods8788.78%
▷ Protected methods00.00%
▷ Private methods1111.22%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected