10% konora

Code Review | Konora Form

WordPress plugin Konora Form scored 10% from 54 tests.

About plugin

  • Plugin page: konora
  • Plugin version: 0.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 1, 2014
  • Latest release: Oct 14, 2015
  • Number of updates: 22
  • Update frequency: every 20.7 days
  • Top authors: wowdinamica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,269 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/konora/widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; konoraWidget has a deprecated constructor

Server metrics [RAM: ▼1.81MB] [CPU: ▼50.91ms] Passed 4 tests

Server-side resources used by Konora Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.284.75 ▼34.90
Dashboard /wp-admin2.20 ▼1.107.72 ▼39.71
Posts /wp-admin/edit.php2.20 ▼1.167.42 ▼36.39
Add New Post /wp-admin/post-new.php2.20 ▼3.697.35 ▼92.63
Media Library /wp-admin/upload.php2.20 ▼1.036.25 ▼27.42
Leads Page /wp-admin/admin.php?page=konora_option_leads_page2.207.77
Tutti i Leads /wp-admin/edit.php?post_type=lead2.206.41
Konora /wp-admin/admin.php?page=konora_options2.208.14
Sincronizza Login /wp-admin/admin.php?page=konora_option_login2.206.11
Area Riservata /wp-admin/admin.php?page=konora_option_reserved_area2.206.94
Autenticazione API /wp-admin/admin.php?page=konora_option_api2.206.72
Aggiungi nuovo /wp-admin/post-new.php?post_type=lead2.206.83
Newsletter /wp-admin/admin.php?page=konora_option_newsletter2.206.31

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 8 new options
New tables
wp_konora_form
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_konorawidget
konora_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Konora Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲17213.51 ▼0.851.83 ▼0.0840.93 ▼8.02
Dashboard /wp-admin2,269 ▲815.09 ▲0.22108.51 ▼14.8268.17 ▲19.70
Posts /wp-admin/edit.php2,169 ▲802.29 ▲0.3042.76 ▲3.3039.13 ▲3.11
Add New Post /wp-admin/post-new.php6,553 ▲5,03320.42 ▼2.96872.21 ▲199.0040.43 ▼28.27
Media Library /wp-admin/upload.php1,454 ▲664.33 ▲0.07100.40 ▲1.4473.28 ▲23.75
Leads Page /wp-admin/admin.php?page=konora_option_leads_page8661.9528.0225.99
Tutti i Leads /wp-admin/edit.php?post_type=lead1,1472.2436.4229.54
Konora /wp-admin/admin.php?page=konora_options8301.9230.1326.68
Sincronizza Login /wp-admin/admin.php?page=konora_option_login9632.2427.9626.27
Area Riservata /wp-admin/admin.php?page=konora_option_reserved_area1,5587.05131.3497.25
Autenticazione API /wp-admin/admin.php?page=konora_option_api9712.4431.3726.17
Aggiungi nuovo /wp-admin/post-new.php?post_type=lead2,3457.90160.66136.02
Newsletter /wp-admin/admin.php?page=konora_option_newsletter9662.2826.8625.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/konora/widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; konoraWidget has a deprecated constructor
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_konora_form
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • konora_db_version
    • widget_recent-posts
    • widget_recent-comments
    • widget_konorawidget
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=konora_option_newsletter
    • > Deprecated in wp-content/plugins/konora/widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; konoraWidget has a deprecated constructor
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=lead
    • > Warning in wp-content/plugins/konora/templates/meta_box.php+6
    Illegal string offset 'id'
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=lead
    • > Notice in wp-content/plugins/konora/templates/meta_box.php+6
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=lead
    • > Warning in wp-content/plugins/konora/templates/meta_box.php+6
    Illegal string offset 'name'

SRP 0% from 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/konora/templates/meta_box.php
    • > /wp-content/plugins/konora/lead/single-lead_3.php
  • 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: http_response_header in wp-content/plugins/konora/form.php on line 53
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/konora/templates/widget.php:8
    • > PHP Notice
      Undefined variable: templates in wp-content/plugins/konora/templates/meta_box.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-includes/class-IXR.php on line 42
    • > PHP Notice
      Undefined variable: img_path in wp-content/plugins/konora/templates/meta_box.php on line 14
    • > PHP Notice
      Undefined offset: 2 in wp-content/plugins/konora/form.php on line 53
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/IXR/class-IXR-server.php' (include_path='.:/usr/share/php') in wp-includes/class-IXR.php on line 42
    • > PHP Warning
      require_once(ABSPATHWPINC/IXR/class-IXR-server.php): failed to open stream: No such file or directory in wp-includes/class-IXR.php on line 42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/konora/xmlrpc.php:25
    • > PHP Notice
      Undefined variable: css in wp-content/plugins/konora/templates/form.php on line 1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/post-new.php?post_type=lead
    • > Network (severe)
    wp-content/plugins/konora/js/admin.js?ver=1696149478 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Contributors: Plugin contributors not specified
  • Screenshots: Screenshot #1 (Page of advertising) image required
You can take inspiration from this readme.txt

konora/konora.php Passed 13 tests

The main file in "Konora Form" v. 0.9.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Converti le visite al tuo sito in contatti per il tuo buisness

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,900 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP133492311,366
CSS7700425
JavaScript319598
HTML10511

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.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
There were not PNG files found in your plugin