83% quran-phrases-about-most-people-shortcodes

Code Review | Quran Phrases About Most People Shortcodes

WordPress plugin Quran Phrases About Most People Shortcodes scored83%from 54 tests.

About plugin

  • Plugin page: quran-phrases-abo...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 6.3.1
  • First release: Feb 3, 2021
  • Latest release: Aug 8, 2021
  • Number of updates: 8
  • Update frequency: every 23.4 days
  • Top authors: zeshanb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /389 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.02MB] [CPU: ▼8.55ms] Passed 4 tests

Analyzing server-side resources used by Quran Phrases About Most People Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.06 ▼7.27
Dashboard /wp-admin3.33 ▲0.0345.82 ▼4.13
Posts /wp-admin/edit.php3.38 ▲0.0242.31 ▼3.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.60 ▼19.20
Media Library /wp-admin/upload.php3.25 ▲0.0233.48 ▼0.63

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quran Phrases About Most People Shortcodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.25 ▼1.321.79 ▲0.0142.12 ▲2.05
Dashboard /wp-admin2,208 ▲224.81 ▼0.1199.71 ▼14.3941.41 ▼2.85
Posts /wp-admin/edit.php2,091 ▲52.03 ▼0.0136.52 ▲1.5234.20 ▲3.27
Add New Post /wp-admin/post-new.php1,539 ▲2518.18 ▲0.51626.21 ▼0.0257.09 ▲2.61
Media Library /wp-admin/upload.php1,390 ▲54.16 ▼0.0795.79 ▼0.2340.47 ▼1.87

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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-phrases-about-most-people-shortcodes/plugin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 79% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shortcode, most people, display phrases, quran

quran-phrases-about-most-people-shortcodes/plugin.php 54% from 13 tests

The entry point to "Quran Phrases About Most People Shortcodes" version 1.4 is a PHP file that has certain tags in its header comment area
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-phrases-about-most-people-shortcodes.php" instead of "plugin.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 186 characters long)
  • Domain Path: The domain path folder does not exist ("/public/lang")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.3")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin535 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS39322422
PHP14314113

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin