10% yamuslim-prayer-time-wordpress-widget

Code Review | Ya'Muslim Prayer Time Wordpress Widget

WordPress plugin Ya'Muslim Prayer Time Wordpress Widget scored 10% from 54 tests.

About plugin

  • Plugin page: yamuslim-prayer-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 22, 2017
  • Latest release: Apr 22, 2017
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: abeneosas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,102 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/yamuslim-prayer-time-wordpress-widget/yamuslimwordpress.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; yamuslimwordpress has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼49.95ms] Passed 4 tests

Analyzing server-side resources used by Ya'Muslim Prayer Time Wordpress Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.20 ▼37.25
Dashboard /wp-admin2.08 ▼1.226.40 ▼43.94
Posts /wp-admin/edit.php2.08 ▼1.277.02 ▼33.91
Add New Post /wp-admin/post-new.php2.08 ▼3.806.34 ▼84.68
Media Library /wp-admin/upload.php2.08 ▼1.156.46 ▼28.71

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_yamuslimwordpress
can_compress_scripts

Browser metrics Passed 4 tests

Ya'Muslim Prayer Time Wordpress Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.30 ▼1.101.84 ▼0.0542.03 ▼9.51
Dashboard /wp-admin2,206 ▲185.90 ▼0.0099.55 ▼11.7937.77 ▼0.61
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0340.46 ▼0.3636.31 ▲0.26
Add New Post /wp-admin/post-new.php1,514 ▼017.65 ▲0.00609.71 ▼12.6150.16 ▼9.39
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0395.24 ▼6.4241.28 ▲0.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/yamuslim-prayer-time-wordpress-widget/yamuslimwordpress.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; yamuslimwordpress has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_yamuslimwordpress
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
  • 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/yamuslim-prayer-time-wordpress-widget/yamuslimwordpress.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === yamuslim-prayer-time-wordpress-widget === )
  • Screenshots: Please add an image for screenshot #1 (widget in sidebar)
The official readme.txt might help

yamuslim-prayer-time-wordpress-widget/yamuslimwordpress.php 92% from 13 tests

The main PHP file in "Ya'Muslim Prayer Time Wordpress Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yamuslim-prayer-time-wordpress-widget.php" instead of "yamuslimwordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin402 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript212074295
PHP126892
CSS10015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ 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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png10.63KB4.55KB▼ 57.21%