10% bangla-al-quran

Code Review | Bangla Al Quraner Bani

WordPress plugin Bangla Al Quraner Bani scored10%from 54 tests.

About plugin

  • Plugin page: bangla-al-quran
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Jul 7, 2013
  • Latest release: Jun 7, 2016
  • Number of updates: 10
  • Update frequency: every 106.7 days
  • Top authors: jabedbd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,972 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/bangla-al-quran/BanglaAlQuran.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; BanglaAlQuranWidget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.75ms] Passed 4 tests

Analyzing server-side resources used by Bangla Al Quraner Bani
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.55 ▼36.83
Dashboard /wp-admin2.08 ▼1.226.53 ▼43.58
Posts /wp-admin/edit.php2.08 ▼1.276.05 ▼41.12
Add New Post /wp-admin/post-new.php2.08 ▼3.805.51 ▼89.46
Media Library /wp-admin/upload.php2.08 ▼1.155.06 ▼28.94

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_banglaalquranwidget
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Bangla Al Quraner Bani: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.73 ▲0.421.95 ▲0.1144.32 ▼6.12
Dashboard /wp-admin2,203 ▲185.84 ▼0.06100.97 ▼13.3839.82 ▼7.50
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0134.03 ▼4.6632.13 ▼0.43
Add New Post /wp-admin/post-new.php1,533 ▼123.30 ▲0.31640.72 ▼24.1252.26 ▼10.67
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0694.87 ▼1.7341.25 ▼0.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/bangla-al-quran/BanglaAlQuran.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; BanglaAlQuranWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_banglaalquranwidget
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bangla-al-quran/BanglaAlQuran.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: bangla quran, islamic, al quran, islam, bangla

bangla-al-quran/BanglaAlQuran.php 92% from 13 tests

The primary PHP file in "Bangla Al Quraner Bani" version 2.5 is used by WordPress to initiate all plugin functionality
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 ("bangla-al-quran.php" instead of "BanglaAlQuran.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131157

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.45MB with 0.27MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png388.35KB149.38KB▼ 61.54%
screenshot-2.png42.90KB17.37KB▼ 59.52%
screenshot-1.png6.87KB4.39KB▼ 36.00%
icon-128x128.png24.78KB5.41KB▼ 78.17%