90% callback-widget-pulsar

Code Review | Callback widget Pulsar

WordPress plugin Callback widget Pulsar scored90%from 54 tests.

About plugin

  • Plugin page: callback-widget-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.2.4
  • WordPress version: 6.3.1
  • First release: Jan 18, 2017
  • Latest release: Nov 3, 2019
  • Number of updates: 15
  • Update frequency: every 67.5 days
  • Top authors: pulsarwidget (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /878 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.92ms] Passed 4 tests

Analyzing server-side resources used by Callback widget Pulsar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.62 ▼0.74
Dashboard /wp-admin3.34 ▲0.0352.04 ▲0.63
Posts /wp-admin/edit.php3.39 ▲0.0352.56 ▲4.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.24 ▼4.97
Media Library /wp-admin/upload.php3.26 ▲0.0338.11 ▲1.40
Callback Pulsar /wp-admin/options-general.php?page=callback-widget-pulsar3.2230.20

Server storage [IO: ▲0.01MB] [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
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Callback widget Pulsar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.27 ▼0.082.13 ▲0.3745.22 ▼0.39
Dashboard /wp-admin2,190 ▲105.58 ▼0.1193.27 ▲3.8240.11 ▼3.65
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0639.75 ▲4.3636.03 ▼2.75
Add New Post /wp-admin/post-new.php1,550 ▲523.33 ▼0.11607.43 ▼65.3858.71 ▲3.70
Media Library /wp-admin/upload.php1,404 ▲14.12 ▼0.08102.32 ▲5.3146.04 ▲1.06
Callback Pulsar /wp-admin/options-general.php?page=callback-widget-pulsar8152.0422.5230.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
The official readme.txt is a good inspiration

callback-widget-pulsar/callback-widget-pulsar.php Passed 13 tests

The primary PHP file in "Callback widget Pulsar" version 1.0 is used by WordPress to initiate all plugin functionality
43 characters long description:
The quick connection button for the website

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 plugin178 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22619134
PO File1121044

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions13
▷ Named functions1076.92%
▷ Anonymous functions323.08%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin