84% notifikuj-cz

Code Review | Notifikuj.cz

WordPress plugin Notifikuj.cz scored84%from 54 tests.

About plugin

  • Plugin page: notifikuj-cz
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2023
  • Latest release: Mar 1, 2023
  • Number of updates: 6
  • Update frequency: every 2.2 days
  • Top authors: infonotifikujcz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Notifikuj.cz
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.89 ▲4.90
Dashboard /wp-admin3.32 ▲0.0148.68 ▲2.33
Posts /wp-admin/edit.php3.37 ▲0.0148.16 ▲1.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.36 ▼11.59
Media Library /wp-admin/upload.php3.24 ▲0.0135.95 ▲0.76

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Notifikuj.cz
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.27 ▼1.011.65 ▲0.0138.44 ▼0.09
Dashboard /wp-admin2,217 ▲265.86 ▲0.9898.50 ▼17.9981.15 ▲38.63
Posts /wp-admin/edit.php2,100 ▲82.00 ▲0.0038.17 ▼2.2536.50 ▲1.98
Add New Post /wp-admin/post-new.php1,538 ▲2418.24 ▲0.73647.32 ▼17.4266.86 ▲4.90
Media Library /wp-admin/upload.php1,396 ▲144.23 ▼0.0396.58 ▼1.1464.65 ▲22.62

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/notifikuj-cz/notifikuj.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/notifikuj-cz/notifikuj_admin.php:260

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: woocommerce, notifikuj

notifikuj-cz/notifikuj.php 92% from 13 tests

This is the main PHP file of "Notifikuj.cz" version 1.0.1, 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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("notifikuj-cz.php" instead of "notifikuj.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin244 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33815244

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png51.44KB18.31KB▼ 64.41%
nf_logo_ikona.png0.78KB0.76KB▼ 3.13%