10% salah-world-prayer-iqamah-timings-for-your-masjids

Code Review | Salah World - Prayer and iQamah Timings for Masjids

WordPress plugin Salah World - Prayer and iQamah Timings for Masjids scored10%from 54 tests.

About plugin

  • Plugin page: salah-world-praye...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Apr 12, 2016
  • Latest release: May 23, 2016
  • Number of updates: 15
  • Update frequency: every 2.7 days
  • Top authors: lolislol (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /2,737 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar.php+261
    A non-numeric value encountered

Server metrics [RAM: ▼1.75MB] [CPU: ▼47.93ms] Passed 4 tests

Analyzing server-side resources used by Salah World - Prayer and iQamah Timings for Masjids
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.226.38 ▼31.55
Dashboard /wp-admin2.26 ▼1.057.75 ▼41.48
Posts /wp-admin/edit.php2.26 ▼1.107.74 ▼39.89
Add New Post /wp-admin/post-new.php2.26 ▼3.637.76 ▼78.81
Media Library /wp-admin/upload.php2.26 ▼0.979.41 ▼26.86
Settings /wp-admin/admin.php?page=setting2.267.15
About /wp-admin/admin.php?page=about2.267.94
DW PromoBar /wp-admin/options-general.php?page=dw_promobar2.267.06
Notification Bar /wp-admin/admin.php?page=dw_promobar2.268.41
Iqamah Times /wp-admin/admin.php?page=salah-world2.268.84

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 65 new files
Database: 1 new table, 8 new options
New tables
wp_iqamahTimes
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
dwpb_bar_text
widget_recent-comments
dwpb_enable
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Salah World - Prayer and iQamah Timings for Masjids
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,012 ▲27714.19 ▼0.245.87 ▲4.0143.17 ▼4.95
Dashboard /wp-admin2,319 ▲1315.38 ▼0.43106.88 ▲2.6639.65 ▼11.13
Posts /wp-admin/edit.php2,206 ▲1172.23 ▲0.1945.57 ▲5.1234.96 ▼1.30
Add New Post /wp-admin/post-new.php1,617 ▲7523.41 ▲5.05685.04 ▲66.4838.33 ▼16.31
Media Library /wp-admin/upload.php1,504 ▲1194.67 ▲0.48103.59 ▲3.5544.87 ▲0.22
Settings /wp-admin/admin.php?page=setting1,7652.5762.0234.78
About /wp-admin/admin.php?page=about1,1082.2229.4332.45
DW PromoBar /wp-admin/options-general.php?page=dw_promobar4,9012.5865.2936.13
Notification Bar /wp-admin/admin.php?page=dw_promobar4,9012.5965.9934.14
Iqamah Times /wp-admin/admin.php?page=salah-world1,0592.2631.2730.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar.php+261
    A non-numeric value encountered
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_iqamahTimes
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • widget_recent-comments
    • dwpb_enable
    • widget_theysaidso_widget
    • dwpb_bar_text
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Warning in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar.php+261
    A non-numeric value encountered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Warning in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar.php+265
    Use of undefined constant fajr - assumed 'fajr' (this will throw an Error in a future version of PHP)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Notice in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar.php+265
    Trying to access array offset on value of type bool
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Warning in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar.php+297
    Use of undefined constant dwpb_bar_text - assumed 'dwpb_bar_text' (this will throw an Error in a future version of PHP)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Notice in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar.php+297
    Undefined variable: prayer_str
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Warning in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar.php+299
    Use of undefined constant dwpb_enable - assumed 'dwpb_enable' (this will throw an Error in a future version of PHP)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the as handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the e2b-admin-prayer-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the e2b-month-prayer-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the custom-prayerIcon-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the custom-componet-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Warning in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/salah-world.php+35
    Use of undefined constant AEC_NAME - assumed 'AEC_NAME' (this will throw an Error in a future version of PHP)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dw_promobar
    • > Notice in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/dw-promobar-option.php+248
    Undefined property: stdClass::$regular
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Notice in wp-content/plugins/salah-world-prayer-iqamah-timings-for-your-masjids/fnbar_options.php+820
    Undefined offset: 0

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/salah-world-prayer-iqamah-timings-for-your-masjids/salah-world.php:76

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=salah-world:227:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=salah-world
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: iqamah, muslim, masjid, islam, salah time...

salah-world-prayer-iqamah-timings-for-your-masjids/salah-world.php 92% from 13 tests

The principal PHP file in "Salah World - Prayer and iQamah Timings for Masjids" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("salah-world-prayer-iqamah-timings-for-your-masjids.php" instead of "salah-world.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin12,277 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS113411328,055
PHP67521892,155
JavaScript123552891,459
SVG200354
LESS2520254

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity21.67
▷ Minimum class complexity3.00
▷ Maximum class complexity36.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods63100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants2
▷ Global constants2100.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
14 PNG files occupy 1.42MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffffff_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-bg_gloss-wave_35_f6a828_500x100.png3.67KB1.93KB▼ 47.53%
css/images/ui-bg_glass_100_fdf5ce_1x400.png0.12KB0.16KB0.00%
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.13KB0.18KB0.00%
img/DeleteRed.png10.04KB4.62KB▼ 54.02%