84% quran-verse-inserter

Code Review | Quran Verse Inserter

WordPress plugin Quran Verse Inserter scored84%from 54 tests.

About plugin

  • Plugin page: quran-verse-inserter
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2022
  • Latest release: Oct 12, 2023
  • Number of updates: 4
  • Update frequency: every 81.0 days
  • Top authors: shamscsediu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 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 gracefully, with no errors

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

An overview of server-side resources used by Quran Verse Inserter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.53 ▲4.79
Dashboard /wp-admin3.32 ▲0.0151.16 ▲0.76
Posts /wp-admin/edit.php3.37 ▲0.0146.95 ▼0.95
Add New Post /wp-admin/post-new.php5.91 ▲0.0183.12 ▼10.08
Media Library /wp-admin/upload.php3.25 ▲0.0137.48 ▲2.65

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Quran Verse Inserter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.17 ▼0.181.64 ▲0.0344.54 ▲6.49
Dashboard /wp-admin2,198 ▲235.60 ▼0.0295.17 ▼5.9740.55 ▲0.87
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0335.83 ▼1.5035.40 ▲0.97
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.74 ▲4.45913.60 ▲258.0755.22 ▲4.04
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.1099.62 ▲5.7842.33 ▲1.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quran-verse-inserter/qvi-quran-verse-inserter.php:26

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: block, quran ayat, quran, quran verse, gutenberg...

quran-verse-inserter/qvi-quran-verse-inserter.php 85% from 13 tests

The main PHP file in "Quran Verse Inserter" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quran-verse-inserter.php" instead of "qvi-quran-verse-inserter.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin59 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON10050
PHP21206
CSS2002
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
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%
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
No PNG images were found in this plugin