89% zingit-scheduling-widget

Code Review | Zingit Scheduling Widget

WordPress plugin Zingit Scheduling Widget scored89%from 54 tests.

About plugin

  • Plugin page: zingit-scheduling...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Jan 24, 2020
  • Latest release: Feb 8, 2021
  • Number of updates: 5
  • Update frequency: every 76.4 days
  • Top authors: zingitadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Zingit Scheduling Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.87 ▲2.60
Dashboard /wp-admin3.31 ▲0.0149.12 ▲0.27
Posts /wp-admin/edit.php3.36 ▲0.0147.20 ▼3.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.98 ▼17.61
Media Library /wp-admin/upload.php3.24 ▲0.0137.66 ▼2.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Zingit Scheduling Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14213.42 ▼0.7911.97 ▲10.0644.62 ▲3.96
Dashboard /wp-admin2,207 ▲305.63 ▲0.0190.70 ▲0.2040.62 ▼1.14
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.0634.98 ▲0.8635.58 ▼2.79
Add New Post /wp-admin/post-new.php1,536 ▲1023.11 ▼0.10685.53 ▼37.2256.45 ▲3.78
Media Library /wp-admin/upload.php1,412 ▲184.20 ▲0.0496.29 ▼8.4544.20 ▼1.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: request appointment, scheduling widget, widget

zingit-scheduling-widget/z2-schdeule-widget.php 85% from 13 tests

The entry point to "Zingit Scheduling Widget" version 1.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("zingit-scheduling-widget.php" instead of "z2-schdeule-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected165 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13715165

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin