74% islamic-archive-for-new-muslims

Code Review | Islamic Archive For New Muslims

WordPress plugin Islamic Archive For New Muslims scored74%from 54 tests.

About plugin

  • Plugin page: islamic-archive-f...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 20, 2015
  • Latest release: Dec 4, 2022
  • Number of updates: 24
  • Update frequency: every 106.0 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,274 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Islamic Archive For New Muslims
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1940.43 ▲0.11
Dashboard /wp-admin3.55 ▲0.2472.00 ▲23.68
Posts /wp-admin/edit.php3.58 ▲0.2249.49 ▲2.11
Add New Post /wp-admin/post-new.php6.05 ▲0.1689.95 ▲2.32
Media Library /wp-admin/upload.php3.39 ▲0.1636.40 ▲2.52
Islamic Content Archive New Muslims /wp-admin/options-general.php?page=islamic_content_archive_new_muslims3.3631.19

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: 1 new table, 10 new options
New tables
wp_opicnm_categories
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
opicnm_cronjobtime
opicnm_version
widget_recent-posts
opicnm_language
widget_recent-comments
opicnm_source
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Islamic Archive For New Muslims
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.61 ▼0.771.67 ▼0.1640.38 ▼3.39
Dashboard /wp-admin2,211 ▲265.99 ▲0.11107.78 ▼9.1444.44 ▲0.56
Posts /wp-admin/edit.php2,097 ▲82.01 ▼0.0341.27 ▲4.1735.89 ▲0.74
Add New Post /wp-admin/post-new.php1,518 ▼1517.84 ▼3.22640.08 ▼107.7650.70 ▼6.59
Media Library /wp-admin/upload.php1,393 ▲54.31 ▲0.1096.00 ▲1.3543.03 ▼1.32
Islamic Content Archive New Muslims /wp-admin/options-general.php?page=islamic_content_archive_new_muslims8222.0324.7345.42

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
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_opicnm_categories
  • Zombie WordPress options detected upon uninstall: 10 options
    • db_upgraded
    • opicnm_version
    • opicnm_source
    • widget_recent-comments
    • opicnm_language
    • opicnm_cronjobtime
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • 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
Good news, no errors were detected

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
Please take a closer look at the following
  • 25× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'app_nm_helpers' not found in wp-content/plugins/islamic-archive-for-new-muslims/lib/html_nm_helper.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function opicnm_icon_logo() in wp-content/plugins/islamic-archive-for-new-muslims/views/options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/islamic-archive-for-new-muslims/lib/opic_nm_shortcode.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/islamic-archive-for-new-muslims/views/layout/default.php:1
    • > PHP Warning
      Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-archive-for-new-muslims/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'html_nm_helper' not found in wp-content/plugins/islamic-archive-for-new-muslims/views/categories.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/islamic-archive-for-new-muslims/lib/nm_pluginlifeciclye.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'app_nm_controlers' not found in wp-content/plugins/islamic-archive-for-new-muslims/controllers/options_nm_controller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'app_nm_controlers' not found in wp-content/plugins/islamic-archive-for-new-muslims/controllers/main_nm_controller.php:5
    • > PHP Warning
      include_once(OPICNM_PLUGIN_PATHLIBDSnm_function.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-archive-for-new-muslims/load.php on line 3

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 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

islamic-archive-for-new-muslims/index.php 92% from 13 tests

"Islamic Archive For New Muslims" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("islamic-archive-for-new-muslims.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,175 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP232511161,127
CSS12048

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.70
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.34
▷ 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%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants22
▷ Global constants22100.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
19 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/logo/new_muslims.png23.43KB7.78KB▼ 66.78%
style/images/flags/hin.png0.63KB1.03KB0.00%
style/images/icons/options_.png3.29KB3.21KB▼ 2.26%
style/images/flags/nep.png0.38KB0.40KB0.00%
style/images/flags/tam.png0.63KB1.03KB0.00%