89% aplinkos-ministerijos-norway-grants

Code Review | Pavojingųjų atliekų identifikavimo įrankis

WordPress plugin Pavojingųjų atliekų identifikavimo įrankis scored89%from 54 tests.

About plugin

  • Plugin page: aplinkos-minister...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 18, 2023
  • Latest release: Oct 18, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: aplinkosministerija (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /23 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.07ms] Passed 4 tests

A check of server-side resources used by Pavojingųjų atliekų identifikavimo įrankis
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.36 ▼0.96
Dashboard /wp-admin3.33 ▼0.0143.77 ▼16.87
Posts /wp-admin/edit.php3.38 ▲0.0347.26 ▲2.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.60 ▼10.40
Media Library /wp-admin/upload.php3.25 ▲0.0332.65 ▼0.05

Server storage [IO: ▲25.42MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • The filesystem usage should be lower than 25MB (currently using 25.42MB)
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Pavojingųjų atliekų identifikavimo įrankis
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲12713.51 ▼0.769.24 ▲7.6944.92 ▲2.27
Dashboard /wp-admin2,192 ▲125.51 ▼0.1690.28 ▲1.1336.37 ▼6.23
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0440.08 ▲3.0936.03 ▲2.02
Add New Post /wp-admin/post-new.php1,526 ▼223.21 ▲0.22630.28 ▲4.7855.61 ▲5.25
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0394.56 ▼6.9143.17 ▼6.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

aplinkos-ministerijos-norway-grants/aplinkos-ministerijos-pluginas.php 92% from 13 tests

The main file in "Pavojingųjų atliekų identifikavimo įrankis" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aplinkos-ministerijos-norway-grants.php" instead of "aplinkos-ministerijos-pluginas.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected127,325 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript649175119,915
JSON111307,135
PHP12411141
HTML12014134

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 0.68MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
rusiuok/assets/assets/images/waste_sorting.png49.34KB17.60KB▼ 64.32%
rusiuok/assets/assets/images/logo_old.png32.55KB17.94KB▼ 44.88%
rusiuok/assets/assets/images/am_logo.png15.95KB7.88KB▼ 50.58%
rusiuok/assets/assets/icons/red_exclemation_mark.png8.12KB3.77KB▼ 53.56%
rusiuok/assets/assets/images/waste_sorting_monochrome.png11.91KB3.30KB▼ 72.27%