74% gita-verses-and-quotes

Code Review | Gita Verses and Quotes

WordPress plugin Gita Verses and Quotes scored 74% from 54 tests.

About plugin

  • Plugin page: gita-verses-and-q...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.8.1
  • First release: Apr 20, 2021
  • Latest release: May 1, 2021
  • Number of updates: 13
  • Update frequency: every 0.9 days
  • Top authors: plgupa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 135 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.83MB] [CPU: ▼192.51ms] Passed 4 tests

Server-side resources used by Gita Verses and Quotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.925.71 ▼13.22
Dashboard /wp-admin1.82 ▼1.236.44 ▼43.28
Posts /wp-admin/edit.php1.82 ▼1.285.63 ▼39.90
Add New Post /wp-admin/post-new.php1.82 ▼3.615.58 ▼660.48
Media Library /wp-admin/upload.php1.82 ▼1.185.37 ▼26.36

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
widget_gita-quote-widget

Browser metrics Passed 4 tests

An overview of browser requirements for Gita Verses and Quotes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11316.20 ▲0.6610.68 ▲2.2252.36 ▼2.68
Dashboard /wp-admin2,972 ▲385.88 ▼0.08143.11 ▼23.83115.17 ▼6.01
Posts /wp-admin/edit.php2,741 ▲22.70 ▲0.0271.73 ▲0.76102.69 ▲1.51
Add New Post /wp-admin/post-new.php1,617 ▲3621.26 ▲0.92285.48 ▼118.78122.09 ▼0.15
Media Library /wp-admin/upload.php1,809 ▲25.02 ▲0.00154.11 ▼17.61120.69 ▼9.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the styling.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_gita-quote-widget

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 | 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/gita-verses-and-quotes/gita-verses-and-quotes.php:24

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: india, verse, inspire, mahabharat, knowledge...

gita-verses-and-quotes/gita-verses-and-quotes.php 92% from 13 tests

This is the main PHP file of "Gita Verses and Quotes" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected160 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13118119
CSS17041

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin