83% zig-notch-events

Code Review | ZIGnotch

WordPress plugin ZIGnotch scored83%from 54 tests.

About plugin

  • Plugin page: zig-notch-events
  • Plugin version: 2.1.7
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jun 10, 2022
  • Latest release: Jun 15, 2022
  • Number of updates: 10
  • Update frequency: every 0.5 days
  • Top authors: gorgievskidavid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.28ms] Passed 4 tests

An overview of server-side resources used by ZIGnotch
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0544.15 ▲2.36
Dashboard /wp-admin3.36 ▲0.0549.59 ▼7.37
Posts /wp-admin/edit.php3.47 ▲0.1150.07 ▼2.63
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.06 ▼14.14
Media Library /wp-admin/upload.php3.28 ▲0.0538.21 ▼0.99

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

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

Browser metrics Passed 4 tests

ZIGnotch: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.22 ▼0.411.81 ▲0.2341.86 ▼0.20
Dashboard /wp-admin2,193 ▲225.56 ▲0.0285.54 ▼12.9377.61 ▲35.00
Posts /wp-admin/edit.php2,116 ▲132.03 ▼0.0736.25 ▼4.7535.13 ▲0.51
Add New Post /wp-admin/post-new.php1,555 ▲1823.28 ▲5.12708.73 ▲75.1257.22 ▼19.24
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.02102.61 ▲2.2074.38 ▲30.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zig-notch-events/includes/functions/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/zig-notch-events/includes/functions/elementor/widgets/event_feed.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zig-notch-events/includes/functions/styles-and-scripts.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/zig-notch-events/includes/functions/elementor/widgets/products.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/zig-notch-events/includes/functions/rest.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/zig-notch-events/includes/templates/admin-templates/admin-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zig-notch-events/includes/functions/elementor/widgets.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/zig-notch-events/includes/functions/elementor/widgets/agenda.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/zig-notch-events/includes/functions/elementor/widgets/exhibitors.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

zig-notch-events/zignotch-feed.php 85% from 13 tests

The main PHP script in "ZIGnotch" version 2.1.7 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zig-notch-events.php" instead of "zignotch-feed.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 detected6,813 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,228465,268
PHP10299371,545

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity13.80
▷ Minimum class complexity2.00
▷ Maximum class complexity57.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2374.19%
▷ Protected methods825.81%
▷ Private methods00.00%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 1.76MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png6.15KB3.07KB▼ 50.12%
assets/icon-256x256.png10.38KB4.48KB▼ 56.81%
assets/agenda-feed.png229.00KB241.19KB0.00%
includes/images/icon.png5.75KB4.77KB▼ 16.99%
includes/images/place-holder-logo.png0.13KB0.13KB0.00%