64% registar-nestalih

Code Review | Register of Missing Persons in Serbia

WordPress plugin Register of Missing Persons in Serbia scored64%from 54 tests.

About plugin

  • Plugin page: registar-nestalih
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 10, 2022
  • Latest release: Jul 31, 2023
  • Number of updates: 36
  • Update frequency: every 12.6 days
  • Top authors: ivijanstefan (94.44%)creativform (8.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /947 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.75MB] [CPU: ▲4.51ms] Passed 4 tests

Analyzing server-side resources used by Register of Missing Persons in Serbia
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7846.96 ▲5.94
Dashboard /wp-admin4.06 ▲0.7558.88 ▲3.93
Posts /wp-admin/edit.php4.11 ▲0.7657.14 ▲1.25
Add New Post /wp-admin/post-new.php6.64 ▲0.75100.58 ▲6.91
Media Library /wp-admin/upload.php3.98 ▲0.7545.01 ▲7.15
Missing Persons /wp-admin/admin.php?page=missing-persons3.98475.01

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 142 new files
Database: 1 new table, 9 new options
New tables
wp_registar_nestalih_cache
New WordPress options
can_compress_scripts
widget_registar_nestalih_widget_latest_missing
Registar-Nestalih-ID
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
registar_nestalih

Browser metrics Passed 4 tests

Register of Missing Persons in Serbia: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.24 ▼1.141.58 ▼0.5940.72 ▼0.86
Dashboard /wp-admin2,257 ▲695.84 ▲0.97102.25 ▼16.7982.33 ▲43.55
Posts /wp-admin/edit.php2,155 ▲662.02 ▲0.0336.10 ▼7.0234.20 ▼3.08
Add New Post /wp-admin/post-new.php1,582 ▲6323.22 ▲0.00664.64 ▲23.3955.60 ▲1.07
Media Library /wp-admin/upload.php1,451 ▲634.18 ▼0.0299.93 ▼2.0092.76 ▲46.62
Missing Persons /wp-admin/admin.php?page=missing-persons1,4571.7327.5334.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-includes/class-wpdb.php+789
    Undefined property: wpdb::$db_prefix
  • Zombie tables detected upon uninstall: 1 table
    • wp_registar_nestalih_cache
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • registar_nestalih
    • widget_registar_nestalih_widget_latest_missing
    • widget_recent-posts
    • Registar-Nestalih-ID

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 31× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/registar-nestalih/templates/missing-persons/contact-form.php
    • > /wp-content/plugins/registar-nestalih/templates/widgets/recent-news.php
    • > /wp-content/plugins/registar-nestalih/templates/missing-persons/in-content.php
    • > /wp-content/plugins/registar-nestalih/classes/Rewrite.php
    • > /wp-content/plugins/registar-nestalih/classes/Content.php
    • > /wp-content/plugins/registar-nestalih/classes/Statistic.php
    • > /wp-content/plugins/registar-nestalih/templates/missing-persons.php
    • > /wp-content/plugins/registar-nestalih/classes/Push_Notification.php
    • > /wp-content/plugins/registar-nestalih/classes/Render.php
    • > /wp-content/plugins/registar-nestalih/widgets/News.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: register, missing persons, library

registar-nestalih/registar-nestalih.php Passed 13 tests

The primary PHP file in "Register of Missing Persons in Serbia" version 1.1.4 is used by WordPress to initiate all plugin functionality
96 characters long description:
Display on your site all missing persons from the central Register of Missing Persons of Serbia.

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
Good job! No executable or dangerous file extensions detected11,124 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
Sass709729524,921
PHP358085904,342
PO File36437181,728
JavaScript111369
CSS4131164

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity31.94
▷ Minimum class complexity3.00
▷ Maximum class complexity93.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods163
▷ Static methods6036.81%
▷ Public methods13079.75%
▷ Protected methods10.61%
▷ Private methods3219.63%
Functions16
▷ Named functions00.00%
▷ Anonymous functions16100.00%
Constants13
▷ Global constants1184.62%
▷ Class constants215.38%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.33MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/registar-nestalih-lica-srbije.png6.69KB3.98KB▼ 40.44%
templates/assets/images/no-image-female.png38.33KB16.35KB▼ 57.36%
assets/img/logo.png16.83KB8.69KB▼ 48.35%
assets/img/developed-by.png14.55KB5.35KB▼ 63.21%
assets/img/cnzd-srbija-logo.png13.56KB6.42KB▼ 52.61%