83% operatornaklik-cz

Code Review | Operátornaklik

WordPress plugin Operátornaklik scored83%from 54 tests.

About plugin

  • Plugin page: operatornaklik-cz
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2022
  • Latest release: Sep 29, 2022
  • Number of updates: 14
  • Update frequency: every 3.6 days
  • Top authors: operatornaklik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /611 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Operátornaklik
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.69 ▼4.13
Dashboard /wp-admin3.31 ▼0.0450.37 ▼29.23
Posts /wp-admin/edit.php3.36 ▲0.0050.96 ▼13.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.68 ▼23.46
Media Library /wp-admin/upload.php3.23 ▲0.0038.23 ▼9.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Operátornaklik
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.351.92 ▼0.5643.83 ▼8.06
Dashboard /wp-admin2,209 ▲245.83 ▲0.95107.95 ▼19.0739.17 ▼13.48
Posts /wp-admin/edit.php2,089 ▼72.03 ▲0.0646.72 ▼4.6036.92 ▼6.34
Add New Post /wp-admin/post-new.php1,533 ▼023.08 ▲2.01659.48 ▼119.4557.22 ▼4.65
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.06103.66 ▼27.4448.13 ▼18.72

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× 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/operatornaklik-cz/operatornaklik.php:108

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: messaging, livechat, customer care, chat widget, multichannel...

operatornaklik-cz/operatornaklik.php 69% from 13 tests

The main PHP file in "Operátornaklik" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("operatornaklik-cz.php" instead of "operatornaklik.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.6" instead of "5.9")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected404 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27626404

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1076.92%
▷ Public methods861.54%
▷ Protected methods00.00%
▷ Private methods538.46%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected