84% oraret-e-faljes-per-shqiperine

Code Review | Oraret e faljes per Shqiperine

WordPress plugin Oraret e faljes per Shqiperine scored84%from 54 tests.

About plugin

  • Plugin page: oraret-e-faljes-p...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2023
  • Latest release: Mar 21, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: laboratorial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.57ms] Passed 4 tests

Analyzing server-side resources used by Oraret e faljes per Shqiperine
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.00 ▲2.04
Dashboard /wp-admin3.32 ▲0.0147.82 ▼1.66
Posts /wp-admin/edit.php3.37 ▲0.0150.48 ▼6.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.95 ▼4.15
Media Library /wp-admin/upload.php3.24 ▲0.0137.65 ▲4.83

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Oraret e faljes per Shqiperine
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.76 ▼0.441.87 ▲0.1645.99 ▲3.58
Dashboard /wp-admin2,215 ▲95.79 ▲0.90103.93 ▼1.7438.54 ▼7.70
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0639.09 ▼2.4536.34 ▼1.23
Add New Post /wp-admin/post-new.php1,550 ▲2423.21 ▲5.73603.99 ▼73.8662.13 ▲6.06
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0698.51 ▼18.7746.13 ▼10.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_iframe_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oraret-e-faljes-per-shqiperine/Oraret_e_faljes_per_Shqiperine.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

oraret-e-faljes-per-shqiperine/Oraret_e_faljes_per_Shqiperine.php 92% from 13 tests

The main file in "Oraret e faljes per Shqiperine" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oraret-e-faljes-per-shqiperine.php" instead of "Oraret_e_faljes_per_Shqiperine.php")

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
Everything looks great! No dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141320

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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
No PNG files were detected