74% klawoo-connector

Code Review | Klawoo Connector

WordPress plugin Klawoo Connector scored 74% from 54 tests.

About plugin

  • Plugin page: klawoo-connector
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2014
  • Latest release: Jan 9, 2018
  • Number of updates: 11
  • Update frequency: every 113.6 days
  • Top authors: niravmehta (63.64%)storeapps (45.45%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,076 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Klawoo Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.03 ▼5.23
Dashboard /wp-admin3.31 ▲0.0149.57 ▲3.25
Posts /wp-admin/edit.php3.36 ▲0.0144.56 ▼2.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.27 ▼10.64
Media Library /wp-admin/upload.php3.24 ▲0.0132.27 ▼0.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_wc_klawoo
New WordPress options
db_upgraded
can_compress_scripts
wc_klawoo_smtp_settings
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Klawoo Connector
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.121.84 ▲0.2445.30 ▲6.61
Dashboard /wp-admin2,206 ▲204.83 ▼1.24102.32 ▼10.0439.64 ▲0.27
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0240.24 ▼0.0134.39 ▼0.35
Add New Post /wp-admin/post-new.php1,514 ▼2817.55 ▼0.64678.40 ▲84.8063.43 ▲13.74
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0198.05 ▼6.5342.65 ▼4.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wc_klawoo
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • wc_klawoo_smtp_settings
    • theysaidso_admin_options

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/klawoo-connector/klawoo-connector.php:15

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

klawoo-connector/klawoo-connector.php 92% from 13 tests

The entry point to "Klawoo Connector" version 1.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.3" instead of "2.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,859 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25251131,511
JavaScript112334315
CSS15033

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity302.00
▷ Minimum class complexity302.00
▷ Maximum class complexity302.00
Average method complexity16.84
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/green-tick.png1.79KB1.85KB0.00%