83% read-holy-quran

Code Review | Read Holy Quran

WordPress plugin Read Holy Quran scored83%from 54 tests.

About plugin

  • Plugin page: read-holy-quran
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2013
  • Latest release: Nov 19, 2013
  • Number of updates: 16
  • Update frequency: every 0.2 days
  • Top authors: masumbd (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30+ active /3,182 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.68ms] Passed 4 tests

Analyzing server-side resources used by Read Holy Quran
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0053.09 ▲9.30
Dashboard /wp-admin3.31 ▼0.0451.83 ▼14.37
Posts /wp-admin/edit.php3.36 ▲0.0051.12 ▼3.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.84 ▼19.08
Media Library /wp-admin/upload.php3.23 ▲0.0036.32 ▼1.98

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Read Holy Quran
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.002.23 ▲0.3347.02 ▲3.54
Dashboard /wp-admin2,195 ▲215.61 ▼0.0488.67 ▼6.1541.27 ▼2.86
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0433.57 ▼7.8037.40 ▼2.56
Add New Post /wp-admin/post-new.php1,526 ▼223.51 ▲0.25685.56 ▲20.5256.85 ▲2.59
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0495.29 ▼17.1444.27 ▼2.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/read-holy-quran/read-holy-quran.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.jpg), #2 (screenshot-3.jpg)
  • Donate link: Invalid URI ("")
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

read-holy-quran/read-holy-quran.php Passed 13 tests

"Read Holy Quran" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
This is a simple Holy Quran Reader Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121212

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin