73% islamic-content-archive

Code Review | Islamic Content Archive

WordPress plugin Islamic Content Archive scored73%from 54 tests.

About plugin

  • Plugin page: islamic-content-a...
  • Plugin version: 2.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2015
  • Latest release: Dec 4, 2022
  • Number of updates: 41
  • Update frequency: every 63.1 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,634 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▲5.41ms] Passed 4 tests

A check of server-side resources used by Islamic Content Archive
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2447.08 ▲2.34
Dashboard /wp-admin3.59 ▲0.2977.18 ▲21.92
Posts /wp-admin/edit.php3.63 ▲0.2754.07 ▲2.78
Add New Post /wp-admin/post-new.php6.09 ▲0.21130.89 ▲12.91
Media Library /wp-admin/upload.php3.43 ▲0.2139.36 ▲3.60
Islamic Content Archive /wp-admin/options-general.php?page=islamic_content_archive3.4036.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 53 new files
Database: 1 new table, 10 new options
New tables
wp_ica_categories
New WordPress options
can_compress_scripts
ica_source
ica_version
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
ica_cronjobtime
widget_recent-comments
widget_recent-posts
ica_language

Browser metrics Passed 4 tests

This is an overview of browser requirements for Islamic Content Archive
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5913.57 ▼0.811.68 ▼0.0941.28 ▼0.28
Dashboard /wp-admin2,229 ▲224.88 ▼0.04109.52 ▼1.8848.58 ▲1.11
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0339.13 ▲1.2237.54 ▲4.05
Add New Post /wp-admin/post-new.php1,535 ▼621.21 ▲2.97661.43 ▲43.7056.54 ▲4.73
Media Library /wp-admin/upload.php1,408 ▲84.33 ▲0.13106.84 ▲2.6047.44 ▲2.26
Islamic Content Archive /wp-admin/options-general.php?page=islamic_content_archive9282.0524.3626.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_ica_categories
  • The uninstall procedure has failed, leaving 10 options in the database
    • ica_version
    • widget_recent-comments
    • ica_language
    • ica_source
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • ica_cronjobtime
    • widget_recent-posts

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
Even though everything seems fine, this is not 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
  • 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/islamic-content-archive/lib/app_controlers.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'app_helpers' not found in wp-content/plugins/islamic-content-archive/lib/html_helper.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/islamic-content-archive/views/layout/default.php:1
    • > PHP Warning
      include_once(ICA_PATHICA_LIBICA_DSfunction.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-content-archive/load.php on line 3
    • > PHP Warning
      Use of undefined constant ICA_DS - assumed 'ICA_DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ica_cat_icon() in wp-content/plugins/islamic-content-archive/views/options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ica_cat_icon() in wp-content/plugins/islamic-content-archive/views/language.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'app_controlers' not found in wp-content/plugins/islamic-content-archive/controllers/options_controller.php:5
    • > PHP Warning
      include_once(): Failed opening 'ICA_PATHICA_LIBICA_DSpluginlifeciclye.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-content-archive/load.php on line 2
    • > PHP Warning
      Use of undefined constant ICA_LIB - assumed 'ICA_LIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive/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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Show Categoreis) image required
You can take inspiration from this readme.txt

islamic-content-archive/index.php 85% from 13 tests

"Islamic Content Archive" version 2.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("islamic-content-archive.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 260 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,436 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP222741811,388
CSS13048

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods49
▷ Static methods12.04%
▷ Public methods3979.59%
▷ Protected methods48.16%
▷ Private methods612.24%
Functions26
▷ Named functions2596.15%
▷ Anonymous functions13.85%
Constants21
▷ Global constants21100.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
27 PNG files occupy 0.29MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/flags/tel.png0.63KB1.03KB0.00%
style/images/logo/new_muslims.png23.43KB7.78KB▼ 66.78%
style/images/flags/rom.png0.28KB0.31KB0.00%
style/images/logo/prayer_in_islam.png30.22KB9.02KB▼ 70.14%
style/images/logo/learning-quran.png16.63KB6.10KB▼ 63.32%