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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.22 | 6.38 ▼31.55 |
Dashboard /wp-admin | 2.26 ▼1.05 | 7.75 ▼41.48 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 7.74 ▼39.89 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.63 | 7.76 ▼78.81 |
Media Library /wp-admin/upload.php | 2.26 ▼0.97 | 9.41 ▼26.86 |
Settings /wp-admin/admin.php?page=setting | 2.26 | 7.15 |
About /wp-admin/admin.php?page=about | 2.26 | 7.94 |
DW PromoBar /wp-admin/options-general.php?page=dw_promobar | 2.26 | 7.06 |
Notification Bar /wp-admin/admin.php?page=dw_promobar | 2.26 | 8.41 |
Iqamah Times /wp-admin/admin.php?page=salah-world | 2.26 | 8.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,012 ▲277 | 14.19 ▼0.24 | 5.87 ▲4.01 | 43.17 ▼4.95 |
Dashboard /wp-admin | 2,319 ▲131 | 5.38 ▼0.43 | 106.88 ▲2.66 | 39.65 ▼11.13 |
Posts /wp-admin/edit.php | 2,206 ▲117 | 2.23 ▲0.19 | 45.57 ▲5.12 | 34.96 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,617 ▲75 | 23.41 ▲5.05 | 685.04 ▲66.48 | 38.33 ▼16.31 |
Media Library /wp-admin/upload.php | 1,504 ▲119 | 4.67 ▲0.48 | 103.59 ▲3.55 | 44.87 ▲0.22 |
Settings /wp-admin/admin.php?page=setting | 1,765 | 2.57 | 62.02 | 34.78 |
About /wp-admin/admin.php?page=about | 1,108 | 2.22 | 29.43 | 32.45 |
DW PromoBar /wp-admin/options-general.php?page=dw_promobar | 4,901 | 2.58 | 65.29 | 36.13 |
Notification Bar /wp-admin/admin.php?page=dw_promobar | 4,901 | 2.59 | 65.99 | 34.14 |
Iqamah Times /wp-admin/admin.php?page=salah-world | 1,059 | 2.26 | 31.27 | 30.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 341 | 132 | 8,055 |
PHP | 6 | 752 | 189 | 2,155 |
JavaScript | 12 | 355 | 289 | 1,459 |
SVG | 2 | 0 | 0 | 354 |
LESS | 2 | 52 | 0 | 254 |
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 code | 0.30 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 3.67KB | 1.93KB | ▼ 47.53% |
css/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.12KB | 0.16KB | 0.00% |
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |
img/DeleteRed.png | 10.04KB | 4.62KB | ▼ 54.02% |