83% islamic-content-archive-for-dawah-skills

Code Review | Islamic Content Archive For Dawah Skills

WordPress plugin Islamic Content Archive For Dawah Skills scored83%from 54 tests.

About plugin

  • Plugin page: islamic-content-a...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2016
  • Latest release: Dec 4, 2022
  • Number of updates: 15
  • Update frequency: every 156.6 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲2.56ms] Passed 4 tests

Analyzing server-side resources used by Islamic Content Archive For Dawah Skills
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1950.66 ▲9.39
Dashboard /wp-admin3.54 ▲0.2385.56 ▲37.07
Posts /wp-admin/edit.php3.58 ▲0.2249.28 ▲0.70
Add New Post /wp-admin/post-new.php6.04 ▲0.1596.62 ▲0.26
Media Library /wp-admin/upload.php3.39 ▲0.1537.53 ▼0.11
Islamic Content Archive For Dawah Skills /wp-admin/options-general.php?page=islamic_content_archive_for_dawah_skills3.3633.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 55 new files
Database: 1 new table, 10 new options
New tables
wp_opicds_categories
New WordPress options
opicds_cronjobtime
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
opicds_version
db_upgraded
widget_recent-comments
opicds_language
opicds_source
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Islamic Content Archive For Dawah Skills
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.19 ▼1.432.23 ▲0.3943.99 ▼1.43
Dashboard /wp-admin2,208 ▲205.84 ▼0.01100.42 ▼10.3742.17 ▼0.30
Posts /wp-admin/edit.php2,097 ▲82.00 ▼0.0435.66 ▼5.0031.69 ▼3.09
Add New Post /wp-admin/post-new.php1,543 ▲2318.31 ▼4.93609.14 ▼59.6556.35 ▼15.34
Media Library /wp-admin/upload.php1,384 ▼44.27 ▲0.0999.00 ▼1.6242.33 ▼9.27
Islamic Content Archive For Dawah Skills /wp-admin/options-general.php?page=islamic_content_archive_for_dawah_skills8182.0525.5333.69

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_theysaidso_widget
    • opicds_language
    • opicds_version
    • theysaidso_admin_options
    • opicds_cronjobtime
    • db_upgraded
    • can_compress_scripts
    • opicds_source
    • widget_recent-comments
    • 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
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
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant OPICDS_PLUGIN_PATH - assumed 'OPICDS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-dawah-skills/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'html_ds_helper' not found in wp-content/plugins/islamic-content-archive-for-dawah-skills/views/categories.php:2
    • > PHP Warning
      include_once(OPICDS_PLUGIN_PATHDSLIBDSDSds_function.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-content-archive-for-dawah-skills/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'app_ds_controlers' not found in wp-content/plugins/islamic-content-archive-for-dawah-skills/controllers/options_ds_controller.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/islamic-content-archive-for-dawah-skills/views/layout/default.php:1
    • > PHP Warning
      include_once(): Failed opening 'OPICDS_PLUGIN_PATHDSLIBDSDSds_function.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-content-archive-for-dawah-skills/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'app_ds_controlers' not found in wp-content/plugins/islamic-content-archive-for-dawah-skills/controllers/categories_ds_controller.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fun_ds_loadlang() in wp-content/plugins/islamic-content-archive-for-dawah-skills/load.php:4
    • > PHP Warning
      include_once(OPICDS_PLUGIN_PATHDSLIBDSDSds_pluginlifeciclye.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-content-archive-for-dawah-skills/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/islamic-content-archive-for-dawah-skills/lib/ds_pluginlifeciclye.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
The official readme.txt might help

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

"Islamic Content Archive For Dawah Skills" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("islamic-content-archive-for-dawah-skills.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected8,878 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS69237,417
PHP23258981,161
SVG100288
JavaScript10112

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.10
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity3.37
▷ 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%
Functions25
▷ Named functions25100.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 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/flags/rom.png0.28KB0.31KB0.00%
style/images/flags/spa.png0.52KB0.88KB0.00%
screenshot-1.png19.64KB7.76KB▼ 60.48%
style/images/flags/eng.png0.40KB0.43KB0.00%
style/images/flags/tam.png0.63KB1.03KB0.00%