63% dragon-calendar-free-version

Code Review | Multi Days Events and Multi Events in One Day Calendar

WordPress plugin Multi Days Events and Multi Events in One Day Calendar scored63%from 54 tests.

About plugin

  • Plugin page: dragon-calendar-f...
  • Plugin version: https://www.ebay.com...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 9, 2020
  • Latest release: Nov 21, 2023
  • Number of updates: 43
  • Update frequency: every 27.2 days
  • Top authors: v20202020 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,085 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼32.27ms] Passed 4 tests

An overview of server-side resources used by Multi Days Events and Multi Events in One Day Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.57 ▼4.20
Dashboard /wp-admin3.07 ▼0.2725.57 ▼32.35
Posts /wp-admin/edit.php3.07 ▼0.2825.20 ▼25.00
Add New Post /wp-admin/post-new.php3.07 ▼2.8125.36 ▼64.68
Media Library /wp-admin/upload.php3.07 ▼0.1622.40 ▼7.03

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 330 new files
Database: 1 new table, 6 new options
New tables
wp_dragoncalendarfreezyx987
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Multi Days Events and Multi Events in One Day Calendar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.22 ▼0.481.97 ▲0.0344.46 ▲0.23
Dashboard /wp-admin2,199 ▲215.61 ▼0.0982.71 ▼26.9536.84 ▼4.12
Posts /wp-admin/edit.php2,107 ▲102.01 ▲0.0536.80 ▼2.2231.93 ▼3.72
Add New Post /wp-admin/post-new.php1,529 ▲323.64 ▲0.35660.42 ▼46.3749.77 ▼6.83
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.0896.21 ▼1.2141.59 ▼0.80
Dragon Calendar Free Version /wp-admin/options-general.php?page=Dragon Calendar Free Version2,9344.55119.5870.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_dragoncalendarfreezyx987
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/dragon-calendar-free-version/template-calendarfreeiframewithheaderfooter12.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/dragon-calendar-free-version/template-calendarfree2.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dragon-calendar-free-version/dragoncalendarfreezyx987_admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/dragon-calendar-free-version/template-calendarfreeiframewithheaderfooter15.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/dragon-calendar-free-version/template-calendarfreeiframewithheaderfooter4.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/dragon-calendar-free-version/template-calendarfreeiframewithheaderfooter2.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/dragon-calendar-free-version/template-calendarfreeiframewithheaderfooter14.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/dragon-calendar-free-version/template-calendarfreeiframewithheaderfooter1.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/dragon-calendar-free-version/template-calendarfreeiframewithheaderfooter3.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dragon-calendar-free-version/dragoncalendarfreezyx987_importer.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #0, #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8 in dragon-calendar-free-version/assets to your readme.txt
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

dragon-calendar-free-version/dragoncalendarfreezyx987_importer.php 77% from 13 tests

The main PHP file in "Multi Days Events and Multi Events in One Day Calendar" ver. https://www.ebay.com... adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "https://www.ebay.com...")
  • Main file name: Name the main plugin file the same as the plugin slug ("dragon-calendar-free-version.php" instead of "dragoncalendarfreezyx987_importer.php")
  • Description: The description should be shorter than 140 characters (currently 154 characters long)

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
No dangerous file extensions were detected50,901 lines of code in 276 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1961,2253,69542,656
TypeScript16175594,706
CSS163373801,514
PHP141181761,394
JSON1600546
Markdown1875085

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin