10% timemk-widget

Code Review | TIME.MK Widget

WordPress plugin TIME.MK Widget scored 10% from 54 tests.

About plugin

  • Plugin page: timemk-widget
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Jul 19, 2013
  • Number of updates: 5
  • Update frequency: every 29.2 days
  • Top authors: Kuzmanov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 853 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/timemk-widget/timemk_widget.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; TIMEMK_Widget has a deprecated constructor

Server metrics [RAM: ▼1.80MB] [CPU: ▼53.16ms] Passed 4 tests

A check of server-side resources used by TIME.MK Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.284.95 ▼36.38
Dashboard /wp-admin2.20 ▼1.108.34 ▼40.60
Posts /wp-admin/edit.php2.20 ▼1.156.12 ▼46.58
Add New Post /wp-admin/post-new.php2.20 ▼3.687.16 ▼89.09
Media Library /wp-admin/upload.php2.20 ▼1.037.60 ▼25.86

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_timemk-widget
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

TIME.MK Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲14413.62 ▼0.765.90 ▲4.2139.48 ▼9.36
Dashboard /wp-admin2,206 ▲275.90 ▲0.02106.89 ▼10.7336.37 ▼16.66
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0540.05 ▲3.6336.98 ▲6.45
Add New Post /wp-admin/post-new.php1,534 ▲2023.11 ▲5.55659.21 ▼19.1551.39 ▼6.33
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.09111.98 ▲3.3248.89 ▼4.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/timemk-widget/timemk_widget.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; TIMEMK_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_timemk-widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timemk-widget/timemk_widget.php:13

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 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (TIME.mk Widget - Поставувања), #2 (TIME.mk Widget - Приказ)
The official readme.txt might help

timemk-widget/timemk_widget.php 85% from 13 tests

The primary PHP file in "TIME.MK Widget" version 2.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 441 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("timemk-widget.php" instead of "timemk_widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected248 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12510248

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity10.00
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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
2 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.83KB5.46KB▼ 38.14%
screenshot-2.png186.23KB49.88KB▼ 73.21%