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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.78 | 46.96 ▲5.94 |
Dashboard /wp-admin | 4.06 ▲0.75 | 58.88 ▲3.93 |
Posts /wp-admin/edit.php | 4.11 ▲0.76 | 57.14 ▲1.25 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.75 | 100.58 ▲6.91 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 45.01 ▲7.15 |
Missing Persons /wp-admin/admin.php?page=missing-persons | 3.98 | 475.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲135 | 13.24 ▼1.14 | 1.58 ▼0.59 | 40.72 ▼0.86 |
Dashboard /wp-admin | 2,257 ▲69 | 5.84 ▲0.97 | 102.25 ▼16.79 | 82.33 ▲43.55 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.02 ▲0.03 | 36.10 ▼7.02 | 34.20 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,582 ▲63 | 23.22 ▲0.00 | 664.64 ▲23.39 | 55.60 ▲1.07 |
Media Library /wp-admin/upload.php | 1,451 ▲63 | 4.18 ▼0.02 | 99.93 ▼2.00 | 92.76 ▲46.62 |
Missing Persons /wp-admin/admin.php?page=missing-persons | 1,457 | 1.73 | 27.53 | 34.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 70 | 972 | 952 | 4,921 |
PHP | 35 | 808 | 590 | 4,342 |
PO File | 3 | 643 | 718 | 1,728 |
JavaScript | 1 | 11 | 3 | 69 |
CSS | 4 | 13 | 11 | 64 |
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 code | 0.42 |
Average class complexity | 31.94 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 60 | 36.81% |
▷ Public methods | 130 | 79.75% |
▷ Protected methods | 1 | 0.61% |
▷ Private methods | 32 | 19.63% |
Functions | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.00% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/registar-nestalih-lica-srbije.png | 6.69KB | 3.98KB | ▼ 40.44% |
templates/assets/images/no-image-female.png | 38.33KB | 16.35KB | ▼ 57.36% |
assets/img/logo.png | 16.83KB | 8.69KB | ▼ 48.35% |
assets/img/developed-by.png | 14.55KB | 5.35KB | ▼ 63.21% |
assets/img/cnzd-srbija-logo.png | 13.56KB | 6.42KB | ▼ 52.61% |