74% fiveprayer

Code Review | Five Prayer

WordPress plugin Five Prayer scored74%from 54 tests.

About plugin

  • Plugin page: fiveprayer
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Sep 19, 2023
  • Number of updates: 9
  • Update frequency: every 36.4 days
  • Top authors: jamaaldev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /371 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▼5.90ms] Passed 4 tests

An overview of server-side resources used by Five Prayer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3040.60 ▲3.99
Dashboard /wp-admin3.63 ▲0.2848.85 ▼9.74
Posts /wp-admin/edit.php3.68 ▲0.3249.72 ▲3.74
Add New Post /wp-admin/post-new.php6.15 ▲0.2683.17 ▼20.14
Media Library /wp-admin/upload.php3.49 ▲0.2639.23 ▲2.54

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 3 new tables, 6 new options
New tables
wp_fp_prayer_settings_meta
wp_fp_timetable
wp_fp_location_city
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Five Prayer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,992 ▲24613.63 ▼0.678.12 ▲6.3843.47 ▲1.19
Dashboard /wp-admin2,322 ▲1374.84 ▼0.08107.97 ▼0.7173.39 ▲29.65
Posts /wp-admin/edit.php2,208 ▲1162.01 ▼0.1337.47 ▼2.4033.96 ▼4.33
Add New Post /wp-admin/post-new.php1,779 ▲24622.15 ▼1.05747.23 ▲81.3460.88 ▼5.12
Media Library /wp-admin/upload.php1,492 ▲1044.13 ▼0.04101.58 ▼0.6772.30 ▲27.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_fp_timetable
    • wp_fp_location_city
    • wp_fp_prayer_settings_meta
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means 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 fix the following items
  • 17× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/fiveprayer/php/classes/routers/GetInfoWordpressController.php
    • > /wp-content/plugins/fiveprayer/php/classes/shortcodes/FpTimeTableMonth.php
    • > /wp-content/plugins/fiveprayer/php/classes/module/DailyStyleDynamic.php
    • > /wp-content/plugins/fiveprayer/php/classes/module/MonthStyleDynamic.php
    • > /wp-content/plugins/fiveprayer/php/classes/pages/fiveprayer_index.php
    • > /wp-content/plugins/fiveprayer/php/classes/module/Validator.php
    • > /wp-content/plugins/fiveprayer/php/classes/module/StyleDynamicDB.php
    • > /wp-content/plugins/fiveprayer/php/classes/module/GenerateTimeTableMonthly.php
    • > /wp-content/plugins/fiveprayer/php/classes/pages/FivePrayer_admin.php
    • > /wp-content/plugins/fiveprayer/php/classes/routers/PrayerSettingsMetaController.php

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: five, fiveprayer, prayer, muslim

fiveprayer/FivePrayer.php 85% from 13 tests

The main PHP script in "Five Prayer" version 1.2.1 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fiveprayer.php" instead of "FivePrayer.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
Good job! No executable or dangerous file extensions detected1,925 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP20404721,506
CSS3578230
Markdown127076
JSON10062
SVG10051
JavaScript121900

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions44
▷ Named functions00.00%
▷ Anonymous functions44100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin