73% islamic-content-archive-for-muslim-e-library

Code Review | Islamic Content Archive For Muslim e-Library

WordPress plugin Islamic Content Archive For Muslim e-Library scored73%from 54 tests.

About plugin

  • Plugin page: islamic-content-a...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Dec 23, 2015
  • Latest release: Aug 12, 2020
  • Number of updates: 8
  • Update frequency: every 211.9 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,388 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.16MB] [CPU: ▲0.15ms] Passed 4 tests

A check of server-side resources used by Islamic Content Archive For Muslim e-Library
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1745.69 ▲1.74
Dashboard /wp-admin3.52 ▲0.2277.09 ▲27.99
Posts /wp-admin/edit.php3.55 ▲0.2050.17 ▲1.85
Add New Post /wp-admin/post-new.php6.02 ▲0.1486.64 ▼5.60
Media Library /wp-admin/upload.php3.36 ▲0.1438.13 ▲2.62
Islamic Content Archive For Muslim e-Library /wp-admin/options-general.php?page=ica_ml3.3333.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 10 new options
New tables
wp_ica_ml_categories
New WordPress options
widget_theysaidso_widget
ica_ml_cronjobtime
can_compress_scripts
db_upgraded
ica_ml_language
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
ica_ml_source
ica_ml_version

Browser metrics Passed 4 tests

An overview of browser requirements for Islamic Content Archive For Muslim e-Library
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4813.19 ▼1.131.68 ▼0.5539.21 ▼10.11
Dashboard /wp-admin2,205 ▲145.83 ▼0.0599.32 ▼14.9135.76 ▼8.29
Posts /wp-admin/edit.php2,091 ▲22.06 ▲0.0137.34 ▼3.2433.15 ▼1.52
Add New Post /wp-admin/post-new.php1,532 ▲1821.04 ▲3.54680.41 ▼2.4753.27 ▼3.21
Media Library /wp-admin/upload.php1,393 ▲54.18 ▼0.0893.59 ▼4.5140.61 ▼5.41
Islamic Content Archive For Muslim e-Library /wp-admin/options-general.php?page=ica_ml8182.0625.0023.23

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
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_ica_ml_categories
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-posts
    • ica_ml_cronjobtime
    • ica_ml_version
    • ica_ml_source
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • ica_ml_language

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 no errors were found, 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 Fatal error
      Uncaught Error: Class 'app_ica_ml_helpers' not found in wp-content/plugins/islamic-content-archive-for-muslim-e-library/lib/html_ica_ml_helper.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'app_ica_ml_controlers' not found in wp-content/plugins/islamic-content-archive-for-muslim-e-library/controllers/categories_ica_ml_controller.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fun_ica_ml_loadlang() in wp-content/plugins/islamic-content-archive-for-muslim-e-library/load.php:4
    • > PHP Warning
      Use of undefined constant ICA_ML_LIB - assumed 'ICA_ML_LIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-muslim-e-library/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ica_ml_icon_logo() in wp-content/plugins/islamic-content-archive-for-muslim-e-library/views/options.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'app_ica_ml_models' not found in wp-content/plugins/islamic-content-archive-for-muslim-e-library/lib/app_ica_ml_cronjob.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/islamic-content-archive-for-muslim-e-library/lib/ica_ml_pluginlifeciclye.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/islamic-content-archive-for-muslim-e-library/lib/ica_ml_cronjob.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'app_ica_ml_controlers' not found in wp-content/plugins/islamic-content-archive-for-muslim-e-library/controllers/main_ica_ml_controller.php:5
    • > PHP Warning
      include_once(ICA_ML_PATHICA_ML_LIBICA_ML_DSica_ml_pluginlifeciclye.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-content-archive-for-muslim-e-library/load.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

islamic-content-archive-for-muslim-e-library/index.php 85% from 13 tests

The main PHP script in "Islamic Content Archive For Muslim e-Library" version 1.2 is automatically included on every request by WordPress
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-content-archive-for-muslim-e-library.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 175 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
Everything looks great! No dangerous files found in this plugin1,072 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP23230911,024
CSS12048

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3786.05%
▷ Protected methods49.30%
▷ Private methods24.65%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.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
20 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/flags/eng.png0.40KB0.43KB0.00%
style/images/flags/rom.png0.28KB0.31KB0.00%
style/images/flags/ben.png0.55KB0.64KB0.00%
style/images/flags/nep.png0.38KB0.40KB0.00%
style/images/flags/tag.png0.67KB1.08KB0.00%