68% nakiedy-darmowy-system-rezerwacji-online

Code Review | Nakiedy - system rezerwacji online

WordPress plugin Nakiedy - system rezerwacji online scored68%from 54 tests.

About plugin

  • Plugin page: nakiedy-darmowy-s...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2015
  • Latest release: Dec 6, 2016
  • Number of updates: 13
  • Update frequency: every 40.8 days
  • Top authors: nakiedy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,866 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.90MB] [CPU: ▼31.43ms] Passed 4 tests

This is a short check of server-side resources used by Nakiedy - system rezerwacji online
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.66 ▼4.29
Dashboard /wp-admin3.04 ▼0.2624.90 ▼21.37
Posts /wp-admin/edit.php3.04 ▼0.3124.35 ▼21.95
Add New Post /wp-admin/post-new.php3.04 ▼2.8423.58 ▼72.28
Media Library /wp-admin/upload.php3.04 ▼0.1823.63 ▼10.11
Ustawienia /wp-admin/admin.php?page=wpn-settings3.0424.86
Pomoc /wp-admin/admin.php?page=wpn-help3.0425.09
Kalendarz /wp-admin/admin.php?page=wpn-dashboard3.0423.57

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

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

Browser metrics Passed 4 tests

Nakiedy - system rezerwacji online: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3614.11 ▼0.261.61 ▼0.1839.42 ▼2.29
Dashboard /wp-admin2,228 ▲535.60 ▼0.1485.36 ▼13.6687.65 ▲42.21
Posts /wp-admin/edit.php2,139 ▲391.98 ▲0.0137.96 ▲1.5634.70 ▼1.18
Add New Post /wp-admin/post-new.php1,708 ▲18222.28 ▼1.09686.39 ▼0.6450.28 ▼4.45
Media Library /wp-admin/upload.php1,433 ▲334.17 ▼0.0196.70 ▼11.9562.55 ▲14.97
Ustawienia /wp-admin/admin.php?page=wpn-settings8722.1823.7333.72
Pomoc /wp-admin/admin.php?page=wpn-help8951.9924.4230.52
Kalendarz /wp-admin/admin.php?page=wpn-dashboard8052.0025.8026.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpn-dashboard
    • > User notice in wp-includes/functions.php+5905
    Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)

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 fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Nakiedy_Rezerwacje' not found in wp-content/plugins/nakiedy-darmowy-system-rezerwacji-online/includes/wpn-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nakiedy-darmowy-system-rezerwacji-online/nakiedy-rezerwacje.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Nakiedy_Rezerwacje' not found in wp-content/plugins/nakiedy-darmowy-system-rezerwacji-online/includes/wpn-help.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Nakiedy_Rezerwacje' not found in wp-content/plugins/nakiedy-darmowy-system-rezerwacji-online/includes/wpn-dashboard.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: rezerwacja wizyt, system rejestracji, system rezerwacji, rejestracja online

nakiedy-darmowy-system-rezerwacji-online/nakiedy-rezerwacje.php 77% from 13 tests

"Nakiedy - system rezerwacji online" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nakiedy-darmowy-system-rezerwacji-online.php" instead of "nakiedy-rezerwacje.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 571 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,085 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP513885617
CSS1116468

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity23.00
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/nakiedy.png4.40KB2.82KB▼ 35.97%
images/nakiedy-logo.png1.24KB1.29KB0.00%