83% muslim-prayer-time-bd

Code Review | Muslim Prayer Time BD

WordPress plugin Muslim Prayer Time BD scored83%from 54 tests.

About plugin

  • Plugin page: muslim-prayer-tim...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2014
  • Latest release: Mar 28, 2023
  • Number of updates: 40
  • Update frequency: every 83.8 days
  • Top authors: moviehour (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /14,607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼1.80ms] Passed 4 tests

Server-side resources used by Muslim Prayer Time BD
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2443.11 ▼1.26
Dashboard /wp-admin3.62 ▲0.3156.73 ▲1.16
Posts /wp-admin/edit.php3.73 ▲0.3750.18 ▼0.10
Add New Post /wp-admin/post-new.php6.19 ▲0.3188.05 ▼5.01
Media Library /wp-admin/upload.php3.54 ▲0.3138.26 ▼0.82
Prayer Settings /wp-admin/options-general.php?page=muslim-prayer-time-bd/admin-settings.php3.5140.57

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_mptb
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Muslim Prayer Time BD
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲14013.86 ▼0.795.73 ▲3.6143.51 ▼3.22
Dashboard /wp-admin2,228 ▲435.15 ▲0.29107.21 ▼22.5240.85 ▼4.39
Posts /wp-admin/edit.php2,119 ▲302.35 ▲0.3439.38 ▲1.2831.59 ▼4.56
Add New Post /wp-admin/post-new.php1,533 ▲1423.47 ▲0.29701.89 ▲67.2341.10 ▼12.56
Media Library /wp-admin/upload.php1,416 ▲254.56 ▲0.36102.14 ▼6.9343.76 ▲1.60
Prayer Settings /wp-admin/options-general.php?page=muslim-prayer-time-bd/admin-settings.php3,1913.51131.6975.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_mptb
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/muslim-prayer-time-bd/admin-settings.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Prayer Timetable with Beautiful Mosque 1.), #2 (Sehri & Iftar Card with Beautiful Mosque 1.), #3 (Prayer Timetable with Beautiful Mosque 2.), #4 (Prayer Timetable in Bangla.), #5 (Prayer Timetable in English.), #6 (Prayer Timetable with Sehri & Iftar Card in Bangla.), #7 (Only Sehri & Iftar Card.), #8 (Prayer Timetable with Mosque Artwork.), #9 (Prayer Table Options.)
You can take inspiration from this readme.txt

muslim-prayer-time-bd/muslim-prayer-time.php 85% from 13 tests

Analyzing the main PHP file in "Muslim Prayer Time BD" version 2.4
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("muslim-prayer-time-bd.php" instead of "muslim-prayer-time.php")

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 plugin1,414 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22059992
JavaScript22636223
PO File14356108
CSS201491

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 compressed PNG files occupy 0.45MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png2.06KB2.06KB0.00%
images/512.png248.70KB90.55KB▼ 63.59%
screenshot-4.png3.44KB3.44KB0.00%
images/mosque-black.png35.84KB35.84KB0.00%
screenshot-2.png28.95KB28.97KB0.00%