84% waktu-solat

Code Review | WP Muslim Prayer Time

WordPress plugin WP Muslim Prayer Time scored84%from 54 tests.

About plugin

  • Plugin page: waktu-solat
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0.2
  • WordPress version: 6.3.1
  • First release: Aug 24, 2018
  • Latest release: Jan 8, 2019
  • Number of updates: 4
  • Update frequency: every 34.5 days
  • Top authors: fadlisaad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /968 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.94ms] Passed 4 tests

This is a short check of server-side resources used by WP Muslim Prayer Time
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.36 ▼5.02
Dashboard /wp-admin3.32 ▼0.0350.46 ▼13.65
Posts /wp-admin/edit.php3.37 ▲0.0149.01 ▼6.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.03 ▼22.91
Media Library /wp-admin/upload.php3.24 ▲0.0138.93 ▼1.74

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_waktu_solat
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Muslim Prayer Time
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▼0.081.82 ▼0.0244.74 ▲6.79
Dashboard /wp-admin2,194 ▲175.54 ▼0.0788.34 ▼1.2238.88 ▼4.45
Posts /wp-admin/edit.php2,102 ▲22.01 ▲0.0338.84 ▼3.3735.43 ▼1.61
Add New Post /wp-admin/post-new.php1,528 ▲223.40 ▲2.31642.65 ▼43.7655.18 ▲1.63
Media Library /wp-admin/upload.php1,405 ▲54.23 ▲0.0398.23 ▼4.3243.02 ▼5.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_waktu_solat
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/waktu-solat/waktu-solat.php:13

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Screenshot of widget setting), #2 (Screenshot of test email option.)
You can take inspiration from this readme.txt

waktu-solat/waktu-solat.php Passed 13 tests

The main PHP file in "WP Muslim Prayer Time" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
A simple prayer time widget for WordPress based on JAKIM e-solat

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1322681
CSS12028

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected