84% aistore-bhagavad-gita

Code Review | Aistore Bhagavad Gita

WordPress plugin Aistore Bhagavad Gita scored 84% from 54 tests.

About plugin

  • Plugin page: aistore-bhagavad-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Mar 27, 2022
  • Number of updates: 7
  • Update frequency: every 10.9 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 265 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.78ms] Passed 4 tests

An overview of server-side resources used by Aistore Bhagavad Gita
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.95 ▼3.36
Dashboard /wp-admin3.33 ▲0.0347.58 ▼1.50
Posts /wp-admin/edit.php3.38 ▲0.0349.00 ▲2.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0397.20 ▼0.95
Media Library /wp-admin/upload.php3.26 ▲0.0341.55 ▲6.45

Server storage [IO: ▲27.28MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Total filesystem usage must be limited to 25MB (currently using 27.28MB)
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aistore Bhagavad Gita
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.21 ▼1.141.78 ▼0.1643.78 ▼0.84
Dashboard /wp-admin2,218 ▲304.84 ▼0.03107.39 ▼12.8341.11 ▼4.50
Posts /wp-admin/edit.php2,101 ▲152.03 ▲0.0239.20 ▲4.3137.59 ▲1.88
Add New Post /wp-admin/post-new.php1,543 ▼223.07 ▼0.24655.44 ▼18.8260.74 ▲5.40
Media Library /wp-admin/upload.php1,403 ▲124.19 ▼0.0097.44 ▲1.6744.66 ▼2.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aistore-bhagavad-gita/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: aistore bhagavad gita chapters

aistore-bhagavad-gita/index.php 92% from 13 tests

"Aistore Bhagavad Gita" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("aistore-bhagavad-gita.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin119,237 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods6100.00%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin