74% callback-request

Code Review | Callback Request

WordPress plugin Callback Request scored74%from 54 tests.

About plugin

  • Plugin page: callback-request
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Aug 20, 2012
  • Latest release: Dec 23, 2013
  • Number of updates: 47
  • Update frequency: every 10.4 days
  • Top authors: joeybdesign (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /20,384 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.94MB] [CPU: ▼34.92ms] Passed 4 tests

Analyzing server-side resources used by Callback Request
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.59 ▲2.60
Dashboard /wp-admin3.00 ▼0.3027.63 ▼20.31
Posts /wp-admin/edit.php3.00 ▼0.3522.78 ▼29.16
Add New Post /wp-admin/post-new.php3.00 ▼2.8823.13 ▼81.91
Media Library /wp-admin/upload.php3.00 ▼0.2228.53 ▼8.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Callback Request
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.33 ▼0.942.42 ▲0.4444.38 ▲3.15
Dashboard /wp-admin2,209 ▲245.84 ▼0.02103.39 ▼6.2080.25 ▲38.66
Posts /wp-admin/edit.php2,104 ▲151.97 ▼0.0536.70 ▼0.1936.26 ▲2.11
Add New Post /wp-admin/post-new.php1,680 ▲14622.77 ▼0.37664.54 ▲23.5556.03 ▲5.16
Media Library /wp-admin/upload.php1,397 ▲94.22 ▲0.00105.67 ▲5.0448.80 ▲3.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/callback-request/callback_shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/callback-request/callback.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/callback-request/callback_settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/callback-request/uninstall.php:12

User-side errors Passed 1 test

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

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

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

Analyzing the main PHP file in "Callback Request" version 1.4
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 208 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("callback-request.php" instead of "callback.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,257 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript213937812
PHP44231211
PO File37575204
CSS14030

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/success.png36.61KB2.40KB▼ 93.44%
js/hs.png2.62KB7.54KB0.00%
css/callback_request_ico.png2.96KB0.23KB▼ 92.26%
js/hv.png2.80KB7.32KB0.00%