Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼13.83ms] Passed 4 tests
An overview of server-side resources used by Salah Time Calendar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.19 ▼0.27 | 22.74 ▼16.82 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.80 ▼5.70 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.29 ▲1.63 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 96.80 ▼34.41 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.06 ▲5.22 |
Edit Salah Time /wp-admin/options-general.php?page=edit-salah-time | 3.60 | 34.90 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Salah Time Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.53 ▼1.22 | 7.97 ▲6.17 | 38.86 ▼9.51 |
Dashboard /wp-admin | 2,212 ▲24 | 5.90 ▲0.01 | 112.40 ▲6.39 | 43.30 ▼3.64 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.02 ▲0.03 | 39.43 ▼2.08 | 40.29 ▲4.99 |
Add New Post /wp-admin/post-new.php | 1,519 ▼17 | 23.11 ▼0.02 | 707.69 ▲121.85 | 58.11 ▲8.25 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.20 ▲0.02 | 99.25 ▼1.14 | 43.92 ▼3.01 |
Edit Salah Time /wp-admin/options-general.php?page=edit-salah-time | 2,031 | 2.04 | 24.00 | 36.28 |
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 did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/salah-time-calender/assets/images/salahtime/Fajr.php
- > /wp-content/plugins/salah-time-calender/assets/images/salahtime/Isha.php
- > /wp-content/plugins/salah-time-calender/assets/images/salahtime/Asr.php
- > /wp-content/plugins/salah-time-calender/assets/images/salahtime/Maghrib.php
- > /wp-content/plugins/salah-time-calender/assets/images/salahtime/Dhuhr.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/salah-time-calender/classes/class-salah-loader.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/salah-time-calender/classes/class-salah-time.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/salah-time-calender/classes/class-salah-shortcode.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/salah-time-calender/salah-time.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== salah-time-calender ===
)
salah-time-calender/salah-time.php 77% from 13 tests
The main file in "Salah Time Calendar" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 242 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("salah-time-calender.php" instead of "salah-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
Good job! No executable or dangerous file extensions detected8,455 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 5,479 |
JavaScript | 5 | 425 | 189 | 1,623 |
PHP | 10 | 121 | 45 | 621 |
CSS | 1 | 27 | 17 | 576 |
SVG | 5 | 0 | 0 | 113 |
PO File | 1 | 13 | 13 | 43 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 5 | 26.32% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin