73% islamic-content-archive-for-the-faith

Code Review | Islamic Content Archive For The Faith

WordPress plugin Islamic Content Archive For The Faith scored73%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /997 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: ▼2.39ms] Passed 4 tests

This is a short check of server-side resources used by Islamic Content Archive For The Faith
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.74 ▲0.34
Dashboard /wp-admin3.41 ▲0.1168.60 ▲21.58
Posts /wp-admin/edit.php3.44 ▲0.0946.94 ▲0.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.93 ▼8.54
Media Library /wp-admin/upload.php3.25 ▲0.0234.90 ▼1.68
Islamic Content Archive For The Faith /wp-admin/options-general.php?page=islamic_content_archive_for_the_faith3.2531.12

Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 10 new options
New tables
wp_opictf_categories
New WordPress options
opictf_source
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
opictf_language
widget_theysaidso_widget
opictf_version
opictf_cronjobtime
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Islamic Content Archive For The Faith
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.25 ▼0.271.88 ▲0.2745.91 ▲1.87
Dashboard /wp-admin2,200 ▲235.60 ▼0.0690.31 ▼7.0640.97 ▼3.35
Posts /wp-admin/edit.php2,105 ▲52.00 ▼0.0138.12 ▲0.5137.91 ▲3.90
Add New Post /wp-admin/post-new.php1,530 ▲423.30 ▼0.49641.79 ▼41.9455.22 ▲1.69
Media Library /wp-admin/upload.php1,405 ▲54.20 ▼0.0094.76 ▼15.4641.61 ▼4.28
Islamic Content Archive For The Faith /wp-admin/options-general.php?page=islamic_content_archive_for_the_faith8242.0324.4124.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_opictf_categories
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • opictf_version
    • opictf_source
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • opictf_language
    • opictf_cronjobtime
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/islamic-content-archive-for-the-faith/lib/tf_pluginlifeciclye.php:28
    • > PHP Warning
      include_once(): Failed opening 'OPICTF_PLUGIN_PATHTFLIBTFDStf_pluginlifeciclye.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 2
    • > PHP Warning
      Use of undefined constant TFDS - assumed 'TFDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function opictf_icon_logo() in wp-content/plugins/islamic-content-archive-for-the-faith/views/language.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'app_tf_models' not found in wp-content/plugins/islamic-content-archive-for-the-faith/lib/app_tf_cronjob.php:3
    • > PHP Warning
      Use of undefined constant TFDS - assumed 'TFDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'app_tf_helpers' not found in wp-content/plugins/islamic-content-archive-for-the-faith/lib/html_tf_helper.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'app_tf_controlers' not found in wp-content/plugins/islamic-content-archive-for-the-faith/controllers/categories_tf_controller.php:5
    • > PHP Warning
      include_once(OPICTF_PLUGIN_PATHTFLIBTFDStf_pluginlifeciclye.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 2
    • > PHP Warning
      Use of undefined constant OPICTF_PLUGIN_PATH - assumed 'OPICTF_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: The official readme.txt might help

islamic-content-archive-for-the-faith/index.php 92% from 13 tests

"Islamic Content Archive For The Faith" version 1.3.6'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: Name the main plugin file the same as the plugin slug ("islamic-content-archive-for-the-faith.php" instead of "index.php")

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 detected1,194 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP232581141,134
CSS12048
JavaScript10112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.90
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
19 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/flags/rus.png0.17KB0.17KB0.00%
style/images/flags/ara.png1.41KB0.93KB▼ 33.87%
style/images/flags/tag.png0.67KB1.08KB0.00%
style/images/flags/eng.png0.40KB0.43KB0.00%
style/images/flags/rom.png0.28KB0.31KB0.00%