10% israel-cities-dropdown

Code Review | Israel cities dropdown

WordPress plugin Israel cities dropdown scored10%from 54 tests.

About plugin

  • Plugin page: israel-cities-dro...
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Aug 19, 2020
  • Latest release: Jan 31, 2022
  • Number of updates: 24
  • Update frequency: every 22.1 days
  • Top authors: meravwebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,695 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/israel-cities-dropdown/israel-cities.php+81
    Use of undefined constant שם_ישוב - assumed 'שם_ישוב' (this will throw an Error in a future version of PHP)

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

Server-side resources used by Israel cities dropdown
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.41 ▼5.17
Dashboard /wp-admin3.32 ▲0.0253.49 ▲3.30
Posts /wp-admin/edit.php3.37 ▲0.0252.24 ▲1.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.09 ▼1.75
Media Library /wp-admin/upload.php3.24 ▲0.0236.93 ▼0.37

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables
wp_israel_cities
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Israel cities dropdown
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲22714.11 ▼0.2515.23 ▲13.4942.55 ▼3.43
Dashboard /wp-admin2,209 ▲214.85 ▼0.07108.68 ▼3.0541.27 ▼1.32
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0337.88 ▼3.5135.55 ▼1.90
Add New Post /wp-admin/post-new.php1,535 ▲223.24 ▼0.04656.05 ▼40.3650.26 ▲0.35
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0494.12 ▼6.4946.44 ▼0.41

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: woocommerce, israel cities

israel-cities-dropdown/israel-cities.php 92% from 13 tests

The principal PHP file in "Israel cities dropdown" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("israel-cities-dropdown.php" instead of "israel-cities.php")

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 detected92 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1281169
JavaScript11023

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin