89% quran-in-text-and-audio

Code Review | Quran in Text and Audio

WordPress plugin Quran in Text and Audio scored89%from 54 tests.

About plugin

  • Plugin page: quran-in-text-and...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 11, 2023
  • Latest release: Jun 11, 2023
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: maidulcu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.02ms] Passed 4 tests

This is a short check of server-side resources used by Quran in Text and Audio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.67 ▼2.29
Dashboard /wp-admin3.31 ▼0.0344.54 ▼11.37
Posts /wp-admin/edit.php3.36 ▲0.0149.37 ▲3.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.95 ▼5.33
Media Library /wp-admin/upload.php3.24 ▲0.0134.55 ▼1.10

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Quran in Text and Audio
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.24 ▼1.141.81 ▲0.1641.87 ▼0.01
Dashboard /wp-admin2,209 ▲214.85 ▼1.06107.67 ▲1.7038.61 ▼3.28
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0138.56 ▲2.1634.87 ▲1.71
Add New Post /wp-admin/post-new.php1,533 ▲1323.09 ▲0.06671.15 ▲0.1850.42 ▼1.30
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.01101.63 ▲3.2045.57 ▲4.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Full Quran with audio), #2 (Single surah), #3 (Single ayah)
Please take inspiration from this readme.txt

quran-in-text-and-audio/quran-in-text-audio.php 85% from 13 tests

"Quran in Text and Audio" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("quran-in-text-and-audio.php" instead of "quran-in-text-audio.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin588 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS1193219
PHP9102431200
JavaScript15918127
SVG30142

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.17
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.32
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods1881.82%
▷ Protected methods00.00%
▷ Private methods418.18%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin