10% blogiramemk-widget

Code Review | Blogirame.mk Widget

WordPress plugin Blogirame.mk Widget scored10%from 54 tests.

About plugin

  • Plugin page: blogiramemk-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Nov 25, 2012
  • Latest release: Nov 25, 2012
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: Kuzmanov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /794 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/blogiramemk-widget/blogirame_widget.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; BlogirameWidget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.88ms] Passed 4 tests

Analyzing server-side resources used by Blogirame.mk Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.33 ▼43.77
Dashboard /wp-admin2.08 ▼1.235.40 ▼44.55
Posts /wp-admin/edit.php2.08 ▼1.286.19 ▼40.56
Add New Post /wp-admin/post-new.php2.08 ▼3.815.65 ▼82.64
Media Library /wp-admin/upload.php2.08 ▼1.155.05 ▼29.69

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Blogirame.mk Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.321.74 ▼0.0741.28 ▼4.23
Dashboard /wp-admin2,206 ▲214.82 ▼0.06103.57 ▲0.2138.14 ▼2.40
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0038.49 ▼1.4233.57 ▼0.87
Add New Post /wp-admin/post-new.php1,534 ▼523.40 ▲0.37664.86 ▲14.4955.95 ▲6.76
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0395.46 ▼1.5942.34 ▼0.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/blogiramemk-widget/blogirame_widget.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; BlogirameWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_blogiramewidget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Almost there! Just fix the following items
  • 1× 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/blogiramemk-widget/blogirame_widget.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Блогираме.мк виџет) image missing
You can take inspiration from this readme.txt

blogiramemk-widget/blogirame_widget.php 85% from 13 tests

The main PHP file in "Blogirame.mk Widget" ver. 1.0 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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("blogiramemk-widget.php" instead of "blogirame_widget.php")
  • Description: The description should be shorter than 140 characters (currently 198 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111030

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions0
▷ Named functions00.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.12MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png36.86KB16.62KB▼ 54.91%
screenshot-1.png89.30KB30.56KB▼ 65.78%