84% salat-time

Code Review | Salat Timing Widget

WordPress plugin Salat Timing Widget scored84%from 54 tests.

About plugin

  • Plugin page: salat-time
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 6.3.1
  • First release: Aug 8, 2014
  • Latest release: Aug 8, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: faaiq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,203 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.18ms] Passed 4 tests

This is a short check of server-side resources used by Salat Timing Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1444.77 ▼1.79
Dashboard /wp-admin3.44 ▲0.1452.03 ▼3.97
Posts /wp-admin/edit.php3.56 ▲0.2050.54 ▼1.10
Add New Post /wp-admin/post-new.php6.02 ▲0.1495.88 ▲2.87
Media Library /wp-admin/upload.php3.37 ▲0.1443.67 ▼1.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
widget_salattime_widget
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
ccpo_db_version
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Salat Timing Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.21 ▼0.021.79 ▼0.3445.39 ▲1.31
Dashboard /wp-admin2,216 ▲395.62 ▼0.0196.12 ▲7.6142.20 ▼0.80
Posts /wp-admin/edit.php2,118 ▲182.01 ▲0.0739.66 ▲2.8436.01 ▲0.35
Add New Post /wp-admin/post-new.php1,541 ▲1323.32 ▲0.21677.32 ▲6.3665.69 ▲10.05
Media Library /wp-admin/upload.php1,418 ▲184.10 ▼0.11109.72 ▲6.3746.79 ▲1.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_salattime_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • ccpo_db_version

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/salat-time/salat-time.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/salat-time/widget-salat-time.php:3

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
3 plugin tags: muslim prayer time table, muslim salat time table, salat timing

salat-time/salat-time.php Passed 13 tests

"Salat Timing Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Show Salat Times, muslim prayer time

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected711 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3248134697
CSS17014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity15.67
▷ Minimum class complexity4.00
▷ Maximum class complexity35.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods65
▷ Static methods00.00%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin