10% festat-e-shqiperise

Code Review | Festat zyrtare të Shqipërisë

WordPress plugin Festat zyrtare të Shqipërisë scored10%from 54 tests.

About plugin

  • Plugin page: festat-e-shqiperise
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 7, 2012
  • Latest release: Apr 3, 2014
  • Number of updates: 15
  • Update frequency: every 46.4 days
  • Top authors: puntori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /818 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
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/festat-e-shqiperise/festat.php+110
    Function create_function() is deprecated

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

A check of server-side resources used by Festat zyrtare të Shqipërisë
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.42 ▼37.45
Dashboard /wp-admin2.05 ▼1.265.06 ▼48.83
Posts /wp-admin/edit.php2.05 ▼1.315.18 ▼46.58
Add New Post /wp-admin/post-new.php2.05 ▼3.846.51 ▼103.68
Media Library /wp-admin/upload.php2.05 ▼1.184.50 ▼30.69

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_wwwfjalaimechal
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Festat zyrtare të Shqipërisë
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.24 ▼1.172.05 ▼0.1445.07 ▲2.68
Dashboard /wp-admin2,203 ▲155.83 ▲0.80104.42 ▼11.0339.55 ▼0.73
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0542.83 ▲3.0736.90 ▲2.23
Add New Post /wp-admin/post-new.php1,514 ▼723.60 ▲0.18654.00 ▲9.9555.68 ▼5.26
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.02106.36 ▲3.5845.33 ▼2.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/festat-e-shqiperise/festat.php+110
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_wwwfjalaimechal

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

SRP 50% from 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
Please fix the following
  • 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-shqiperise/festat.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Pamje nga kutizat e instaluara.), #2 (Pamja e kutizes ne faqe.)
  • Requires at least: The plugin version is formatted incorrectly
  • Plugin Name: You should set the name of your plugin on the first line ( === festat-e-shqiperise === )
You can take inspiration from this readme.txt

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

The main file in "Festat zyrtare të Shqipërisë" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("festat-e-shqiperise.php" instead of "festat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin89 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111089

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity16.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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png5.25KB2.83KB▼ 46.07%
al.png27.43KB11.61KB▼ 57.68%
screenshot-2.png15.99KB8.41KB▼ 47.41%