73% islamic-archive-for-islam-for-christians

Code Review | Islam for Christians Archive

WordPress plugin Islam for Christians Archive scored73%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: May 29, 2016
  • Latest release: Dec 4, 2022
  • Number of updates: 26
  • Update frequency: every 91.6 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /902 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Islam for Christians Archive
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1946.20 ▲3.85
Dashboard /wp-admin3.54 ▲0.2482.29 ▲30.88
Posts /wp-admin/edit.php3.58 ▲0.2250.40 ▼4.99
Add New Post /wp-admin/post-new.php6.05 ▲0.1689.49 ▼9.65
Media Library /wp-admin/upload.php3.39 ▲0.1640.05 ▲4.98
Islam for Christians Archive /wp-admin/options-general.php?page=islam_for_christians_archive3.3635.79

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: 1 new table, 10 new options
New tables
wp_opicifc_categories
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
opicifc_cronjobtime
opicifc_language
widget_recent-comments
opicifc_source
db_upgraded
theysaidso_admin_options
opicifc_version

Browser metrics Passed 4 tests

An overview of browser requirements for Islam for Christians Archive
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.72 ▲0.371.63 ▼0.1543.17 ▲1.34
Dashboard /wp-admin2,203 ▲255.61 ▼0.1285.75 ▼27.1539.53 ▼6.01
Posts /wp-admin/edit.php2,108 ▲51.99 ▼0.0237.52 ▼2.8635.05 ▼0.90
Add New Post /wp-admin/post-new.php1,532 ▲623.03 ▼0.35659.06 ▼34.5955.70 ▲4.21
Media Library /wp-admin/upload.php1,408 ▲114.18 ▼0.02103.81 ▲4.3442.59 ▼2.92
Islam for Christians Archive /wp-admin/options-general.php?page=islam_for_christians_archive8412.0024.4638.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_opicifc_categories
  • Zombie WordPress options detected upon uninstall: 10 options
    • db_upgraded
    • widget_theysaidso_widget
    • opicifc_source
    • opicifc_language
    • opicifc_cronjobtime
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • opicifc_version
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/islamic-archive-for-islam-for-christians/views/layout/default.php:1
    • > PHP Warning
      include_once(): Failed opening 'OPICIFC_PLUGIN_PATHIFCLIBIFCDSifc_pluginlifeciclye.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-archive-for-islam-for-christians/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function opicifc_icon_logo() in wp-content/plugins/islamic-archive-for-islam-for-christians/views/options.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'app_ifc_controlers' not found in wp-content/plugins/islamic-archive-for-islam-for-christians/controllers/language_ifc_controller.php:5
    • > PHP Warning
      include_once(OPICIFC_PLUGIN_PATHIFCLIBIFCDSifc_function.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-archive-for-islam-for-christians/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'app_ifc_controlers' not found in wp-content/plugins/islamic-archive-for-islam-for-christians/controllers/categories_ifc_controller.php:5
    • > PHP Warning
      Use of undefined constant IFCLIB - assumed 'IFCLIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-archive-for-islam-for-christians/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'html_ifc_helper' not found in wp-content/plugins/islamic-archive-for-islam-for-christians/views/categories.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/islamic-archive-for-islam-for-christians/lib/ifc_pluginlifeciclye.php:29
    • > PHP Warning
      Use of undefined constant IFCLIB - assumed 'IFCLIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-archive-for-islam-for-christians/load.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: You can take inspiration from this readme.txt

islamic-archive-for-islam-for-christians/index.php 92% from 13 tests

The main PHP file in "Islam for Christians Archive" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("islamic-archive-for-islam-for-christians.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
Everything looks great! No dangerous files found in this plugin1,205 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP232521111,145
CSS12048
JavaScript10112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4080.00%
▷ Protected methods48.00%
▷ Private methods612.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/flags/ara.png1.41KB0.93KB▼ 33.87%
style/images/icons/language.png6.49KB3.29KB▼ 49.38%
style/images/flags/rom.png0.28KB0.31KB0.00%
style/images/flags/tag.png0.67KB1.08KB0.00%
style/images/flags/spa.png0.52KB0.88KB0.00%