74% saksh-callback-request-form

Code Review | Saksh Callback Request Form

WordPress plugin Saksh Callback Request Form scored 74% from 54 tests.

About plugin

  • Plugin page: saksh-callback-re...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.7
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: Sep 1, 2021
  • Number of updates: 9
  • Update frequency: every 15.8 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 408 total downloads

Benchmarks

Plugin footprint 65% 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.07MB] [CPU: ▼6.64ms] Passed 4 tests

This is a short check of server-side resources used by Saksh Callback Request Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0627.89 ▼13.07
Dashboard /wp-admin3.38 ▲0.0844.96 ▼4.07
Posts /wp-admin/edit.php3.49 ▲0.1444.08 ▲1.73
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.72 ▼10.64
Media Library /wp-admin/upload.php3.30 ▲0.0736.11 ▲1.21

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables
wp_saksh_callback_request
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Saksh Callback Request Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲16713.78 ▼0.615.55 ▲3.8946.15 ▲0.40
Dashboard /wp-admin2,222 ▲375.83 ▼0.0597.58 ▼9.8139.89 ▼5.69
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0233.59 ▼0.1132.88 ▼2.43
Add New Post /wp-admin/post-new.php1,546 ▲1823.44 ▲5.18659.25 ▼58.7453.31 ▼2.28
Media Library /wp-admin/upload.php1,401 ▲164.24 ▲0.04104.00 ▲5.4146.74 ▲3.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_saksh_callback_request
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/saksh-callback-request-form/AdminReport.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/saksh-callback-request-form/AdminReport.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/saksh-callback-request-form/AdminReport.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saksh-callback-request-form/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
10 plugin tags: call back request form, callback request, callback, call back, lead generation...

saksh-callback-request-form/index.php 85% from 13 tests

Analyzing the main PHP file in "Saksh Callback Request Form" version 1.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("saksh-callback-request-form.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin423 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP321488343
JavaScript156376
CSS1204

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.17
Average class complexity7.67
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods730.43%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
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
There are no PNG files in this plugin