84% kontxt

Code Review | Kontxt - Inline Engagement System: Highlights, Comments, Polls, Sharing

WordPress plugin Kontxt - Inline Engagement System: Highlights, Comments, Polls, Sharing scored84%from 54 tests.

About plugin

  • Plugin page: kontxt
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2020
  • Latest release: Mar 3, 2020
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: kontxt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.93ms] Passed 4 tests

This is a short check of server-side resources used by Kontxt - Inline Engagement System: Highlights, Comments, Polls, Sharing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0442.47 ▼4.09
Dashboard /wp-admin3.38 ▼0.0149.11 ▼14.39
Posts /wp-admin/edit.php3.49 ▲0.0952.41 ▲2.12
Add New Post /wp-admin/post-new.php5.96 ▲0.0384.70 ▼19.36
Media Library /wp-admin/upload.php3.30 ▲0.0341.64 ▲4.43

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
kontxt_include_location
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Kontxt - Inline Engagement System: Highlights, Comments, Polls, Sharing: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.21 ▼0.141.62 ▼0.0444.92 ▼0.26
Dashboard /wp-admin2,211 ▲375.57 ▼0.0690.49 ▼2.5638.32 ▼3.27
Posts /wp-admin/edit.php2,116 ▲162.03 ▲0.1039.80 ▲4.4535.66 ▼2.63
Add New Post /wp-admin/post-new.php1,539 ▲1123.53 ▲0.30688.39 ▲19.4255.28 ▼5.26
Media Library /wp-admin/upload.php1,419 ▲164.13 ▼0.01104.79 ▼0.5945.09 ▼0.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kontxt/templates/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
5 plugin tags: comments, sharing, polls, highlights, social

kontxt/kontxt.php 85% from 13 tests

Analyzing the main PHP file in "Kontxt - Inline Engagement System: Highlights, Comments, Polls, Sharing" version 1.0.0
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 204 characters long)
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 71 characters long)

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
There were no executable files found in this plugin275 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310229275

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
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 complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin