83% callback-widget

Code Review | CallBack Widget for WordPress

WordPress plugin CallBack Widget for WordPress scored 83% from 54 tests.

About plugin

  • Plugin page: callback-widget
  • Plugin version: 20150911...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Aug 29, 2015
  • Latest release: Sep 11, 2015
  • Number of updates: 45
  • Update frequency: every 0.3 days
  • Top authors: casepress (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 4,327 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.54ms] Passed 4 tests

Analyzing server-side resources used by CallBack Widget for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.50 ▼12.28
Dashboard /wp-admin3.31 ▲0.0144.28 ▼4.09
Posts /wp-admin/edit.php3.36 ▲0.0143.69 ▼3.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.07 ▼6.65
Media Library /wp-admin/upload.php3.24 ▲0.0136.43 ▲4.15

Server storage [IO: ▲1.30MB] [DB: ▲0.33MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for CallBack Widget for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.081.74 ▲0.1242.31 ▲3.93
Dashboard /wp-admin2,209 ▲215.85 ▼0.00101.93 ▼13.4639.86 ▼6.76
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0234.55 ▼2.8236.05 ▲0.90
Add New Post /wp-admin/post-new.php1,533 ▲1123.00 ▼0.11643.37 ▼25.3551.49 ▼15.19
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.0393.32 ▼0.7040.75 ▼3.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 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/callback-widget/index.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === callback-widget === )
You can look at the official readme.txt

callback-widget/index.php 85% from 13 tests

This is the main PHP file of "CallBack Widget for WordPress" version 20150911..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20150911...")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("callback-widget.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin53 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121041
Markdown16012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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
PNG images were not found in this plugin