84% wp-request-callback

Code Review | WP Request Callback

WordPress plugin WP Request Callback scored84%from 54 tests.

About plugin

  • Plugin page: wp-request-callback
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: Sep 30, 2019
  • Latest release: Sep 30, 2019
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: kiteframe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.66MB] [CPU: ▼25.37ms] Passed 4 tests

A check of server-side resources used by WP Request Callback
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.77 ▲1.42
Dashboard /wp-admin3.34 ▼0.0047.39 ▼16.68
Posts /wp-admin/edit.php3.40 ▲0.0447.11 ▼6.40
Add New Post /wp-admin/post-new.php3.16 ▼2.7332.21 ▼79.00
Media Library /wp-admin/upload.php3.27 ▲0.0434.46 ▲0.60
WP Request Callback /wp-admin/options-general.php?page=wprc3.2330.05

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

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

Browser metrics Passed 4 tests

WP Request Callback: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7013.30 ▼0.981.75 ▲0.0743.53 ▲3.67
Dashboard /wp-admin2,230 ▲595.83 ▲0.1898.70 ▼1.5042.58 ▼0.73
Posts /wp-admin/edit.php2,140 ▲432.29 ▲0.2737.18 ▼4.5330.73 ▼5.51
Add New Post /wp-admin/post-new.php1,555 ▲2923.34 ▲0.34676.01 ▼9.9636.54 ▼14.47
Media Library /wp-admin/upload.php1,429 ▲264.43 ▲0.22104.29 ▼1.0140.93 ▼6.59
WP Request Callback /wp-admin/options-general.php?page=wprc9992.3557.5531.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-request-callback/wp-request-callback.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: callback request, phone, phone back, callback, form...

wp-request-callback/wp-request-callback.php 92% from 13 tests

This is the main PHP file of "WP Request Callback" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin507 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17761336
CSS1270114
JavaScript213057

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions26
▷ Named functions2076.92%
▷ Anonymous functions623.08%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected