Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.59ms] Passed 4 tests
A check of server-side resources used by Prayer Times by AlAdhan
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.89 ▲1.41 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.56 ▲1.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.98 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 83.38 ▼7.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.52 ▼0.46 |
Server storage [IO: ▲1.95MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 264 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_aladhanprayertimeswidget |
Browser metrics Passed 4 tests
A check of browser resources used by Prayer Times by AlAdhan
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲129 | 13.73 ▼0.65 | 4.80 ▲3.12 | 44.83 ▲3.46 |
Dashboard /wp-admin | 2,243 ▲61 | 5.01 ▼0.80 | 109.17 ▲7.41 | 39.80 ▼2.55 |
Posts /wp-admin/edit.php | 2,128 ▲42 | 2.32 ▲0.32 | 37.21 ▲2.17 | 33.85 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,543 ▲6 | 23.28 ▼0.00 | 646.43 ▼12.38 | 35.33 ▼25.87 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.47 ▲0.19 | 100.58 ▲5.70 | 46.36 ▲5.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_aladhanprayertimeswidget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 142× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Event\\AbstractRetryableEvent' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/guzzlehttp/guzzle/src/Event/CompleteEvent.php:14
- > PHP Fatal error
Uncaught Error: Class 'AlAdhanApi\\Client' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/aladhan/api-client/src/AlAdhanApi/Calendar.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Event\\AbstractTransferEvent' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/guzzlehttp/guzzle/src/Event/AbstractRetryableEvent.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/prayer-times-by-aladhan/views/settings.php:10
- > PHP Fatal error
Uncaught Error: Interface 'React\\Promise\\ExtendedPromiseInterface' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/react/promise/src/LazyPromise.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Stream\\StreamInterface' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/guzzlehttp/streams/src/CachingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Stream\\StreamInterface' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/guzzlehttp/guzzle/src/Post/MultipartBody.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Event\\SubscriberInterface' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/guzzlehttp/guzzle/src/Subscriber/Prepare.php:24
- > PHP Fatal error
Uncaught Error: Interface 'React\\Promise\\PromiseInterface' not found in wp-content/plugins/prayer-times-by-aladhan/vendor/react/promise/src/CancellablePromiseInterface.php:5
- > PHP Fatal error
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)
There were no browser issues found
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
5 plugin tags: salat times, adhan, azan, namaaz, prayer times
prayer-times-by-aladhan/aladhan.php 92% from 13 tests
"Prayer Times by AlAdhan" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("prayer-times-by-aladhan.php" instead of "aladhan.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
There were no executable files found in this plugin21,038 lines of code in 249 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 214 | 3,269 | 4,874 | 17,056 |
Markdown | 8 | 669 | 0 | 2,596 |
reStructuredText | 9 | 263 | 333 | 517 |
JSON | 5 | 0 | 0 | 372 |
make | 3 | 41 | 5 | 172 |
JavaScript | 1 | 18 | 60 | 163 |
YAML | 4 | 19 | 0 | 83 |
XML | 3 | 2 | 0 | 57 |
Python | 1 | 4 | 0 | 19 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 24 | |
Traits | 15 | |
Classes | 172 | |
▷ Abstract classes | 4 | 2.33% |
▷ Concrete classes | 168 | 97.67% |
▷ Final classes | 3 | 1.79% |
Methods | 1,458 | |
▷ Static methods | 89 | 6.10% |
▷ Public methods | 1,338 | 91.77% |
▷ Protected methods | 19 | 1.30% |
▷ Private methods | 101 | 6.93% |
Functions | 256 | |
▷ Named functions | 14 | 5.47% |
▷ Anonymous functions | 242 | 94.53% |
Constants | 33 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 33 | 100.00% |
▷ Public constants | 33 | 100.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
2 PNG files occupy 0.99MB with 0.71MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 202.56KB | 56.29KB | ▼ 72.21% |
assets/screenshot-1.png | 815.91KB | 232.91KB | ▼ 71.45% |