77% masjidal

Code Review | Muslim Prayer Time-Salah/Iqamah

WordPress plugin Muslim Prayer Time-Salah/Iqamah scored77%from 54 tests.

About plugin

  • Plugin page: masjidal
  • Plugin version: 1.8.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2021
  • Latest release: Aug 30, 2023
  • Number of updates: 28
  • Update frequency: every 32.5 days
  • Top authors: masjidal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /3,087 total downloads

Benchmarks

Plugin footprint 83% 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.36MB] [CPU: ▼1.81ms] Passed 4 tests

This is a short check of server-side resources used by Muslim Prayer Time-Salah/Iqamah
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3642.92 ▲0.24
Dashboard /wp-admin3.67 ▲0.3655.52 ▲4.17
Posts /wp-admin/edit.php3.78 ▲0.4252.32 ▲3.71
Add New Post /wp-admin/post-new.php6.25 ▲0.3690.44 ▼14.05
Media Library /wp-admin/upload.php3.59 ▲0.3640.19 ▲2.87

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_mpsti_wpb_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Muslim Prayer Time-Salah/Iqamah
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.37 ▼0.012.02 ▲0.2853.84 ▲12.77
Dashboard /wp-admin2,216 ▲395.66 ▲0.0092.11 ▼3.4541.39 ▼1.88
Posts /wp-admin/edit.php2,118 ▲182.13 ▲0.1236.19 ▼0.0839.19 ▼0.35
Add New Post /wp-admin/post-new.php1,541 ▲1323.12 ▲0.41668.90 ▲38.2267.35 ▲19.73
Media Library /wp-admin/upload.php1,415 ▲184.34 ▲0.14101.44 ▲1.0646.20 ▼6.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/masjidal/public/ajax.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/masjidal/admin/admin_page/masjidal_details.php:2

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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Screenshot-1.png), #2 (Screenshot-2.png)
You can take inspiration from this readme.txt

masjidal/masjidal.php 85% from 13 tests

The main PHP script in "Muslim Prayer Time-Salah/Iqamah" version 1.8.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,359 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP163115962,239
CSS2184361,040
Pascal1418580

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.33
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
38 PNG files occupy 1.43MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/images/sunset.png1.17KB0.66KB▼ 43.93%
public/assets/img/checkmark-xxl.png5.13KB2.83KB▼ 44.88%
public/assets/css/border-chkbox.png1.82KB0.27KB▼ 85.17%
public/assets/images/layout_2/Icon4_Asar.png0.78KB0.70KB▼ 9.19%
public/assets/images/d_maghrib.png2.08KB1.66KB▼ 20.56%