10% festat-e-kosoves

Code Review | Festat zyrtare të Kosovës

WordPress plugin Festat zyrtare të Kosovës scored10%from 54 tests.

About plugin

  • Plugin page: festat-e-kosoves
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 6, 2012
  • Latest release: Apr 3, 2014
  • Number of updates: 27
  • Update frequency: every 25.8 days
  • Top authors: puntori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /857 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/festat-e-kosoves/festat.php+106
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.86ms] Passed 4 tests

This is a short check of server-side resources used by Festat zyrtare të Kosovës
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.48 ▼34.61
Dashboard /wp-admin2.05 ▼1.267.66 ▼40.67
Posts /wp-admin/edit.php2.05 ▼1.314.95 ▼43.33
Add New Post /wp-admin/post-new.php2.05 ▼3.845.71 ▼88.82
Media Library /wp-admin/upload.php2.05 ▼1.185.17 ▼26.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_wwwfjalaimechks
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Festat zyrtare të Kosovës
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼0.721.76 ▲0.1245.23 ▲1.24
Dashboard /wp-admin2,203 ▲155.81 ▼0.0994.76 ▼23.1641.25 ▼4.23
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0539.94 ▲2.8835.58 ▲1.32
Add New Post /wp-admin/post-new.php1,548 ▲3418.22 ▲0.46613.49 ▼49.5284.47 ▲29.64
Media Library /wp-admin/upload.php1,385 ▲34.19 ▲0.0297.08 ▼0.0941.28 ▼1.18

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
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/festat-e-kosoves/festat.php+106
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_wwwfjalaimechks
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

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
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/festat-e-kosoves/festat.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Pamje nga kutizat e instaluara.), #2 (Pamja e kutizes ne faqe.)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === festat-e-kosoves === )
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

festat-e-kosoves/festat.php 85% from 13 tests

The main PHP script in "Festat zyrtare të Kosovës" version 1.1.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("festat-e-kosoves.php" instead of "festat.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
There were no executable files found in this plugin85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111085

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity14.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png5.25KB2.83KB▼ 46.07%
screenshot-2.png15.30KB7.94KB▼ 48.10%