83% muzodo

Code Review | Muzodo Upcoming Events Widget

WordPress plugin Muzodo Upcoming Events Widget scored83%from 54 tests.

About plugin

  • Plugin page: muzodo
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 24, 2016
  • Latest release: Nov 6, 2023
  • Number of updates: 20
  • Update frequency: every 142.2 days
  • Top authors: chrismuz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,893 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.04MB] [CPU: ▼5.05ms] Passed 4 tests

An overview of server-side resources used by Muzodo Upcoming Events Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.37 ▼5.39
Dashboard /wp-admin3.35 ▲0.0453.97 ▲2.47
Posts /wp-admin/edit.php3.40 ▲0.0450.92 ▼1.38
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.06 ▼15.91
Media Library /wp-admin/upload.php3.27 ▲0.0443.68 ▲10.46

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Muzodo Upcoming Events Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.22 ▼0.131.65 ▼0.1445.47 ▲0.08
Dashboard /wp-admin2,192 ▲155.51 ▼0.1497.63 ▼4.2241.96 ▼5.72
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0039.07 ▼1.3138.37 ▲4.60
Add New Post /wp-admin/post-new.php1,696 ▲15222.11 ▼3.13671.83 ▲61.7155.00 ▼0.61
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0597.43 ▼5.1142.61 ▼2.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/muzodo/Muzodo_Upcoming_Events.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/muzodo/index.php:176

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === muzodo === )
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

muzodo/Muzodo_Upcoming_Events.php 92% from 13 tests

The primary PHP file in "Muzodo Upcoming Events Widget" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("muzodo.php" instead of "Muzodo_Upcoming_Events.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 plugin628 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP49283388
JavaScript12411138
PO File1151545
CSS37234
JSON10023

PHP code Passed 2 tests

An overview 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.42
Average class complexity17.50
▷ Minimum class complexity10.00
▷ Maximum class complexity25.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin