83% islamic-content-archive-for-learn-the-quran

Code Review | Islamic Content Archive For Learn the Quran

WordPress plugin Islamic Content Archive For Learn the Quran scored83%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,441 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.48ms] Passed 4 tests

Analyzing server-side resources used by Islamic Content Archive For Learn the Quran
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.30 ▲0.01
Dashboard /wp-admin3.41 ▲0.1080.94 ▲29.61
Posts /wp-admin/edit.php3.44 ▲0.0947.08 ▲5.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.69 ▼18.36
Media Library /wp-admin/upload.php3.25 ▲0.0238.01 ▼1.24
Islamic Content Archive For Learn the Quran /wp-admin/options-general.php?page=islamic_content_archive_for_learning_the_quran3.2532.72

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 45 new files
Database: 1 new table, 10 new options
New tables
wp_opicltq_categories
New WordPress options
theysaidso_admin_options
can_compress_scripts
opicltq_source
widget_theysaidso_widget
db_upgraded
opicltq_cronjobtime
opicltq_language
widget_recent-comments
widget_recent-posts
opicltq_version

Browser metrics Passed 4 tests

An overview of browser requirements for Islamic Content Archive For Learn the Quran
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.19 ▼0.072.06 ▲0.3447.07 ▲2.92
Dashboard /wp-admin2,197 ▲205.64 ▲0.0691.55 ▼10.2542.09 ▼1.00
Posts /wp-admin/edit.php2,105 ▲22.01 ▼0.0137.28 ▼5.7732.88 ▼3.09
Add New Post /wp-admin/post-new.php1,532 ▼323.04 ▼0.37651.10 ▼25.7267.40 ▲7.49
Media Library /wp-admin/upload.php1,408 ▲84.16 ▼0.0498.84 ▼10.5141.76 ▼10.26
Islamic Content Archive For Learn the Quran /wp-admin/options-general.php?page=islamic_content_archive_for_learning_the_quran8782.1424.7226.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 10 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • opicltq_version
    • opicltq_source
    • widget_recent-posts
    • db_upgraded
    • opicltq_language
    • can_compress_scripts
    • opicltq_cronjobtime

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 opicltq_icon_logo() in wp-content/plugins/islamic-content-archive-for-learn-the-quran/views/language.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/islamic-content-archive-for-learn-the-quran/index.php:12
    • > PHP Warning
      include_once(): Failed opening 'OPICLTQ_PLUGIN_PATHLTQLIBLTQDSltq_pluginlifeciclye.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-content-archive-for-learn-the-quran/load.php on line 2
    • > PHP Warning
      include_once(OPICLTQ_PLUGIN_PATHLTQLIBLTQDSltq_function.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-content-archive-for-learn-the-quran/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/islamic-content-archive-for-learn-the-quran/views/layout/default.php:1
    • > PHP Warning
      Use of undefined constant LTQLIB - assumed 'LTQLIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-learn-the-quran/load.php on line 3
    • > PHP Warning
      Use of undefined constant LTQDS - assumed 'LTQDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-learn-the-quran/load.php on line 3
    • > PHP Warning
      Use of undefined constant OPICLTQ_PLUGIN_PATH - assumed 'OPICLTQ_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-learn-the-quran/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'html_ltq_helper' not found in wp-content/plugins/islamic-content-archive-for-learn-the-quran/views/categories.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'app_ltq_controlers' not found in wp-content/plugins/islamic-content-archive-for-learn-the-quran/controllers/main_ltq_controller.php:5

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

islamic-content-archive-for-learn-the-quran/index.php 85% from 13 tests

Analyzing the main PHP file in "Islamic Content Archive For Learn the Quran" version 1.3
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-content-archive-for-learn-the-quran.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 258 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,063 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP23248921,003
CSS12048
JavaScript10112

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.30
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.13MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/flags/rom.png0.28KB0.31KB0.00%
style/images/icons/language.png6.49KB3.29KB▼ 49.38%
style/images/icons/options_.png3.29KB3.21KB▼ 2.26%
style/images/icons/options.png4.81KB2.97KB▼ 38.29%
style/images/flags/rus.png0.17KB0.17KB0.00%