84% beautiful-salat

Code Review | Beautiful Salat

WordPress plugin Beautiful Salat scored84%from 54 tests.

About plugin

  • Plugin page: beautiful-salat
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8.2
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Jan 5, 2022
  • Number of updates: 36
  • Update frequency: every 53.2 days
  • Top authors: nazimali21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Beautiful Salat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0554.32 ▲7.95
Dashboard /wp-admin3.34 ▲0.0452.94 ▼5.81
Posts /wp-admin/edit.php3.40 ▲0.0454.47 ▲3.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.96 ▼17.16
Media Library /wp-admin/upload.php3.27 ▲0.0438.36 ▲0.43

Server storage [IO: ▲0.02MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Beautiful Salat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲814.27 ▼0.281.75 ▼0.2240.03 ▼4.62
Dashboard /wp-admin2,197 ▲175.65 ▼0.0182.34 ▼12.6439.60 ▼3.78
Posts /wp-admin/edit.php2,102 ▲21.98 ▲0.0139.19 ▲2.9337.52 ▲3.82
Add New Post /wp-admin/post-new.php6,368 ▲4,84027.84 ▲4.46921.37 ▲285.2654.16 ▼6.31
Media Library /wp-admin/upload.php1,396 ▼44.23 ▲0.0098.38 ▼7.6143.02 ▼4.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautiful-salat/php-require/salat-times.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautiful-salat/php-require/salat-times.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in beautiful-salat/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

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

"Beautiful Salat" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Simple, beautiful, lightweight prayer times plugin using Gutenberg blocks for easy editing.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected209 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43080143
JSON10063
CSS2002
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.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
PNG images were not found in this plugin