10% request-call-back

Code Review | Request Call Back

WordPress plugin Request Call Back scored10%from 54 tests.

About plugin

  • Plugin page: request-call-back
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: May 25, 2013
  • Number of updates: 25
  • Update frequency: every 1.5 days
  • Top authors: scottsalisbury (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

800+ active /17,275 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/request-call-back/request-callback.php+183
    Trying to access array offset on value of type bool

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

An overview of server-side resources used by Request Call Back
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.83 ▼34.72
Dashboard /wp-admin2.11 ▼1.237.04 ▼62.16
Posts /wp-admin/edit.php2.11 ▼1.257.45 ▼45.83
Add New Post /wp-admin/post-new.php2.11 ▼3.788.31 ▼103.71
Media Library /wp-admin/upload.php2.11 ▼1.126.56 ▼30.59
Request Call Back /wp-admin/options-general.php?page=wpcallback2.116.78

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Request Call Back: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲19613.60 ▼0.359.34 ▲7.6241.62 ▲0.57
Dashboard /wp-admin2,210 ▲365.56 ▼0.11101.85 ▲14.4541.29 ▼1.56
Posts /wp-admin/edit.php2,119 ▲192.03 ▲0.0140.40 ▼1.8337.00 ▲1.69
Add New Post /wp-admin/post-new.php1,546 ▲1823.30 ▲0.00637.67 ▼45.7645.72 ▼8.10
Media Library /wp-admin/upload.php1,418 ▲184.25 ▲0.08100.21 ▼12.6446.17 ▼2.91
Request Call Back /wp-admin/options-general.php?page=wpcallback2,0581.6825.2638.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/request-call-back/request-callback.php+183
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 144 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpcallback
    • > Notice in wp-content/plugins/request-call-back/request-callback-admin.php+381
    Trying to access array offset on value of type bool

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/request-call-back/request-callback.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/request-call-back/request-callback-admin.php:410

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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: callback form, request call back, call back button, call back form, callback button...

request-call-back/request-callback.php 85% from 13 tests

The main PHP file in "Request Call Back" ver. 1.4.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("request-call-back.php" instead of "request-callback.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,240 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP312520643
CSS36822522
JavaScript317575

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
colorbox/images/controls.png1.59KB1.67KB0.00%