83% callback

Code Review | Callback

WordPress plugin Callback scored83%from 54 tests.

About plugin

  • Plugin page: callback
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 13, 2022
  • Latest release: Jul 28, 2023
  • Number of updates: 12
  • Update frequency: every 18.9 days
  • Top authors: aerin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /721 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼9.07ms] Passed 4 tests

This is a short check of server-side resources used by Callback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.30 ▼1.68
Dashboard /wp-admin3.43 ▲0.1342.87 ▼9.33
Posts /wp-admin/edit.php3.57 ▲0.2245.66 ▼2.87
Add New Post /wp-admin/post-new.php6.04 ▲0.1681.77 ▼22.40
Media Library /wp-admin/upload.php3.38 ▲0.1541.82 ▲9.84
Callback Form /wp-admin/options-general.php?page=callback/settings.php3.3535.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Callback
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲21013.86 ▼0.499.25 ▲7.6339.58 ▼2.87
Dashboard /wp-admin2,266 ▲925.59 ▼0.1185.09 ▼29.0143.05 ▲0.85
Posts /wp-admin/edit.php2,120 ▲202.03 ▲0.0641.84 ▼16.4733.60 ▼3.23
Add New Post /wp-admin/post-new.php6,210 ▲4,68419.06 ▼4.23928.11 ▲318.0452.55 ▲0.29
Media Library /wp-admin/upload.php1,417 ▲174.15 ▼0.09104.11 ▲1.3245.19 ▲3.39
Callback Form /wp-admin/options-general.php?page=callback/settings.php1,1302.2927.7852.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • callback_track
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/callback/callback.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/callback/messages.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/callback/settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: Please add images for these screenshots: #1 (Example callback form), #2 (Settings page), #3 (Callbacks manager)
  • Contributors: No valid plugin tags found
Please take inspiration from this readme.txt

callback/callback.php 92% from 13 tests

"Callback" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,006 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8262169828
CSS1191496
JavaScript213482

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.71KB4.28KB▼ 78.27%
screenshot-2.png64.15KB17.56KB▼ 72.63%
screenshot-3.png53.41KB12.80KB▼ 76.03%