89% messeninfode-widget

Code Review | Messeninfo Widget

WordPress plugin Messeninfo Widget scored89%from 54 tests.

About plugin

  • Plugin page: messeninfode-widget
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Jun 1, 2022
  • Number of updates: 20
  • Update frequency: every 115.9 days
  • Top authors: Zaglov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,229 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.72ms] Passed 4 tests

Analyzing server-side resources used by Messeninfo Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.67 ▲5.53
Dashboard /wp-admin3.32 ▼0.0248.03 ▼10.39
Posts /wp-admin/edit.php3.37 ▲0.0147.74 ▲2.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.93 ▼8.43
Media Library /wp-admin/upload.php3.24 ▲0.0135.64 ▲1.44

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Messeninfo Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.221.74 ▲0.0741.10 ▲0.18
Dashboard /wp-admin2,206 ▲144.89 ▼0.01111.48 ▲2.9139.23 ▼0.52
Posts /wp-admin/edit.php2,092 ▼02.03 ▲0.0240.84 ▼5.8236.87 ▼0.64
Add New Post /wp-admin/post-new.php1,522 ▼1423.20 ▲0.11643.14 ▲22.3855.48 ▼3.23
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.05100.89 ▼14.2445.74 ▼3.77

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === messeninfode-widget === )
You can look at the official readme.txt

messeninfode-widget/sima_widgets.php 85% from 13 tests

"Messeninfo Widget" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("messeninfode-widget.php" instead of "sima_widgets.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 plugin410 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity6.00
▷ Minimum method complexity5.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/images/free-ticket.png4.00KB2.56KB▼ 36.10%