10% adzan-and-iqamah-times-a-simple-reminder

Code Review | Adzan and Iqamah Times - A Simple Reminder

WordPress plugin Adzan and Iqamah Times - A Simple Reminder scored 10% from 54 tests.

About plugin

  • Plugin page: adzan-and-iqamah-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2013
  • Latest release: Jul 18, 2013
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: imamherlambang (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,414 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/adzan-and-iqamah-times-a-simple-reminder/admin.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; ait_widget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼54.63ms] Passed 4 tests

Analyzing server-side resources used by Adzan and Iqamah Times - A Simple Reminder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.68 ▼37.25
Dashboard /wp-admin2.10 ▼1.205.89 ▼46.12
Posts /wp-admin/edit.php2.10 ▼1.256.54 ▼48.76
Add New Post /wp-admin/post-new.php2.10 ▼3.785.92 ▼86.39
Media Library /wp-admin/upload.php2.10 ▼1.125.98 ▼27.94

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: 5 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
ait_settings
db_upgraded
widget_ait

Browser metrics Passed 4 tests

Checking browser requirements for Adzan and Iqamah Times - A Simple Reminder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.41 ▼0.871.83 ▲0.3043.12 ▼3.62
Dashboard /wp-admin2,239 ▲545.13 ▲0.20102.89 ▲0.5438.43 ▼4.98
Posts /wp-admin/edit.php2,127 ▲382.31 ▲0.2938.53 ▲3.4931.67 ▼1.29
Add New Post /wp-admin/post-new.php1,548 ▲2818.55 ▼4.64629.81 ▼41.1837.44 ▼13.98
Media Library /wp-admin/upload.php1,421 ▲334.37 ▲0.1994.01 ▼8.8042.23 ▼4.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/adzan-and-iqamah-times-a-simple-reminder/admin.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; ait_widget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_ait
    • ait_settings
    • widget_recent-posts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adzan-and-iqamah-times-a-simple-reminder/settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adzan-and-iqamah-times-a-simple-reminder/ajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adzan-and-iqamah-times-a-simple-reminder/ajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adzan-and-iqamah-times-a-simple-reminder/widget.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (2.)
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

adzan-and-iqamah-times-a-simple-reminder/admin.php 85% from 13 tests

The entry point to "Adzan and Iqamah Times - A Simple Reminder" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("adzan-and-iqamah-times-a-simple-reminder.php" instead of "admin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 243 characters long)

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
There were no executable files found in this plugin342 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP411965342

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions13
▷ Named functions13100.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