73% xllentech-salat-timings

Code Review | XllenTech Salat Timings

WordPress plugin XllenTech Salat Timings scored73%from 54 tests.

About plugin

  • Plugin page: xllentech-salat-t...
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2018
  • Latest release: Dec 23, 2022
  • Number of updates: 34
  • Update frequency: every 44.7 days
  • Top authors: xllentech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,272 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.91ms] Passed 4 tests

Analyzing server-side resources used by XllenTech Salat Timings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.60 ▼0.37
Dashboard /wp-admin3.34 ▲0.0449.86 ▲4.17
Posts /wp-admin/edit.php3.45 ▲0.1046.44 ▼7.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.49 ▼4.97
Media Library /wp-admin/upload.php3.26 ▲0.0432.91 ▲0.98
Xllentech Salat Settings /wp-admin/options-general.php?page=xllentech_salat_timings_options3.5341.98

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_xllentech_salat_timings
xllentech_salat_timings_first_activate
widget_theysaidso_widget
widget_recent-comments
xllentech_salat_timings_options
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for XllenTech Salat Timings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13513.91 ▼0.399.73 ▲7.8543.29 ▼0.18
Dashboard /wp-admin2,209 ▲214.87 ▼0.03108.67 ▼13.3940.89 ▼6.05
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0434.15 ▼6.1332.13 ▼1.76
Add New Post /wp-admin/post-new.php1,538 ▲423.26 ▲0.20608.12 ▼59.0555.62 ▼12.06
Media Library /wp-admin/upload.php1,394 ▲34.23 ▼0.0396.94 ▼4.6640.46 ▼4.84
Xllentech Salat Settings /wp-admin/options-general.php?page=xllentech_salat_timings_options4,2642.1927.1633.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • xllentech_salat_timings_options
    • widget_xllentech_salat_timings
    • widget_recent-posts
    • xllentech_salat_timings_first_activate
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=xllentech_salat_timings_options
    • > Notice in wp-content/plugins/xllentech-salat-timings/admin/class-xllentech-salat-timings-admin.php+395
    Undefined index: Canada
    • > GET request to /wp-admin/options-general.php?page=xllentech_salat_timings_options
    • > Warning in wp-content/plugins/xllentech-salat-timings/admin/class-xllentech-salat-timings-admin.php+395
    Invalid argument supplied for foreach()

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/xllentech-salat-timings/includes/PrayTime.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xllentech-salat-timings/includes/class-xllentech-salat-timings.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: shia muslim prayer timings, prayer timings, prayer times, shia prayer times

xllentech-salat-timings/xllentech-salat-timings.php Passed 13 tests

The main PHP file in "XllenTech Salat Timings" ver. 1.2.9 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Display Salat Timings Daily and Monthly for Shia Ithna-Ashari Muslims Around the World

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
No dangerous file extensions were detected2,173 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP126427851,977
CSS218135
JavaScript275861

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity33.50
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods90
▷ Static methods22.22%
▷ Public methods8594.44%
▷ Protected methods00.00%
▷ Private methods55.56%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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