10% vaktija-widget

Code Review | Vaktija Widget

WordPress plugin Vaktija Widget scored10%from 54 tests.

About plugin

  • Plugin page: vaktija-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Feb 16, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: DevCompetence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /661 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
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/vaktija-widget/vaktija_widget.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; vaktija_widget has a deprecated constructor

Server metrics [RAM: ▼1.87MB] [CPU: ▼55.21ms] Passed 4 tests

This is a short check of server-side resources used by Vaktija Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.344.35 ▼35.34
Dashboard /wp-admin2.14 ▼1.167.56 ▼42.11
Posts /wp-admin/edit.php2.14 ▼1.218.06 ▼43.81
Add New Post /wp-admin/post-new.php2.14 ▼3.755.80 ▼99.59
Media Library /wp-admin/upload.php2.14 ▼1.095.82 ▼28.91

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables
wp_vaktija
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_vaktija_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vaktija Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.131.83 ▲0.1342.66 ▼3.68
Dashboard /wp-admin2,209 ▲214.86 ▼0.0395.27 ▼10.1339.31 ▼4.36
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0340.58 ▼1.5934.78 ▼1.23
Add New Post /wp-admin/post-new.php1,542 ▲1418.37 ▼0.17597.83 ▼28.7063.47 ▲12.27
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.0395.04 ▲0.7742.37 ▼0.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/vaktija-widget/vaktija_widget.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; vaktija_widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_vaktija_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vaktija-widget/vaktija_widget.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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: Please add an image for screenshot #1 (screenshot-1.jpg)
  • Donate link: Please fix this invalid URI: "none"
Please take inspiration from this readme.txt

vaktija-widget/vaktija_widget.php 92% from 13 tests

This is the main PHP file of "Vaktija Widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vaktija-widget.php" instead of "vaktija_widget.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
Everything looks great! No dangerous files found in this plugin451 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11625451

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods342.86%
▷ Public methods7100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin