84% wp-quran

Code Review | WP Qu'ran

WordPress plugin WP Qu'ran scored84%from 54 tests.

About plugin

  • Plugin page: wp-quran
  • Plugin version: 0.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 30, 2020
  • Latest release: Nov 4, 2020
  • Number of updates: 5
  • Update frequency: every 6.6 days
  • Top authors: Mista-Flo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,159 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by WP Qu'ran
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.44 ▼3.32
Dashboard /wp-admin3.31 ▲0.0146.84 ▼1.48
Posts /wp-admin/edit.php3.36 ▲0.0051.08 ▲3.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.88 ▼5.85
Media Library /wp-admin/upload.php3.23 ▲0.0041.87 ▲9.37

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Qu'ran
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.72 ▲0.441.76 ▲0.0146.86 ▲2.63
Dashboard /wp-admin2,198 ▲215.57 ▲0.0088.99 ▼15.8741.39 ▼1.07
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0038.42 ▲0.4034.80 ▲0.21
Add New Post /wp-admin/post-new.php6,366 ▲4,83827.45 ▲4.74906.86 ▲238.5057.66 ▼1.33
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0296.85 ▼19.7639.46 ▼7.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • 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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-quran/wp-quran.php:60

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

readme.txt Passed 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
9 plugin tags: block, verse, coran, sourate, quran...

wp-quran/wp-quran.php 92% from 13 tests

This is the main PHP file of "WP Qu'ran" version 0.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin15,586 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON20015,165
JavaScript65141356
PHP251640
CSS261125

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin