73% islamic-archive-for-prayer-in-islam

Code Review | Islamic Archive For Prayer In Islam

WordPress plugin Islamic Archive For Prayer In Islam scored 73% from 54 tests.

About plugin

  • Plugin page: islamic-archive-f...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Dec 4, 2022
  • Number of updates: 57
  • Update frequency: every 43.4 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,744 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.83ms] Passed 4 tests

Server-side resources used by Islamic Archive For Prayer In Islam
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.69 ▲5.52
Dashboard /wp-admin3.41 ▲0.1079.36 ▲27.53
Posts /wp-admin/edit.php3.44 ▲0.0945.99 ▼2.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.54 ▼19.33
Media Library /wp-admin/upload.php3.25 ▲0.0234.96 ▲0.83
Islamic Content Archive Prayer in islam /wp-admin/options-general.php?page=islamic_content_archive_prayer_in_islam3.2533.90

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: 1 new table, 10 new options
New tables
wp_opicpii_categories
New WordPress options
theysaidso_admin_options
opicpii_cronjobtime
can_compress_scripts
opicpii_version
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
opicpii_source
opicpii_language

Browser metrics Passed 4 tests

Checking browser requirements for Islamic Archive For Prayer In Islam
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.29 ▼1.091.87 ▲0.1544.63 ▲4.97
Dashboard /wp-admin2,214 ▲324.88 ▼1.00102.69 ▼0.1542.43 ▼1.72
Posts /wp-admin/edit.php2,094 ▲22.05 ▲0.0335.50 ▼5.9338.93 ▲3.40
Add New Post /wp-admin/post-new.php1,537 ▲423.01 ▼0.25671.83 ▲66.5060.48 ▲10.48
Media Library /wp-admin/upload.php1,393 ▲24.21 ▼0.0395.42 ▼2.6841.84 ▼1.20
Islamic Content Archive Prayer in islam /wp-admin/options-general.php?page=islamic_content_archive_prayer_in_islam8182.0325.0533.49

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
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_opicpii_categories
  • The uninstall procedure has failed, leaving 10 options in the database
    • opicpii_language
    • opicpii_cronjobtime
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • opicpii_version
    • widget_recent-posts
    • opicpii_source
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant PIILIB - assumed 'PIILIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'app_pii_controlers' not found in wp-content/plugins/islamic-archive-for-prayer-in-islam/controllers/language_pii_controller.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/islamic-archive-for-prayer-in-islam/lib/opic_pii_cronjob.php:14
    • > PHP Warning
      include_once(OPICPII_PLUGIN_PATHPIILIBPIIDSpii_pluginlifeciclye.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 2
    • > PHP Warning
      include_once(OPICPII_PLUGIN_PATHPIILIBPIIDSpii_function.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'app_pii_controlers' not found in wp-content/plugins/islamic-archive-for-prayer-in-islam/controllers/categories_pii_controller.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'app_pii_controlers' not found in wp-content/plugins/islamic-archive-for-prayer-in-islam/controllers/main_pii_controller.php:5
    • > PHP Warning
      include_once(): Failed opening 'OPICPII_PLUGIN_PATHPIILIBPIIDSpii_function.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'app_pii_helpers' not found in wp-content/plugins/islamic-archive-for-prayer-in-islam/lib/html_pii_helper.php:5
    • > PHP Warning
      include_once(): Failed opening 'OPICPII_PLUGIN_PATHPIILIBPIIDSpii_pluginlifeciclye.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add a description for screenshot #2 in islamic-archive-for-prayer-in-islam/assets to your readme.txt
The official readme.txt might help

islamic-archive-for-prayer-in-islam/index.php 85% from 13 tests

The main PHP file in "Islamic Archive For Prayer In Islam" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("islamic-archive-for-prayer-in-islam.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 180 characters long)

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
No dangerous file extensions were detected1,216 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP232521081,156
CSS12048
JavaScript10112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.70
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods51
▷ Static methods23.92%
▷ Public methods4180.39%
▷ Protected methods47.84%
▷ Private methods611.76%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.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
19 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/flags/ben.png0.55KB0.64KB0.00%
style/images/flags/tam.png0.63KB1.03KB0.00%
screenshot-2.png42.87KB15.67KB▼ 63.46%
style/images/flags/sin.png1.36KB0.84KB▼ 38.04%
style/images/flags/tel.png0.63KB1.03KB0.00%