84% qlikview-syntax-highlighter

Code Review | Qlik for WordPress

WordPress plugin Qlik for WordPress scored 84% from 54 tests.

About plugin

  • Plugin page: qlikview-syntax-h...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 15, 2014
  • Latest release: Feb 14, 2018
  • Number of updates: 44
  • Update frequency: every 27.7 days
  • Top authors: MattFryer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.79ms] Passed 4 tests

An overview of server-side resources used by Qlik for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.08 ▲1.01
Dashboard /wp-admin3.35 ▲0.0551.91 ▲5.25
Posts /wp-admin/edit.php3.40 ▲0.0444.85 ▼0.26
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.58 ▼2.65
Media Library /wp-admin/upload.php3.27 ▲0.0433.51 ▼1.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Qlik for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.27 ▼1.341.76 ▼0.2245.96 ▲5.00
Dashboard /wp-admin2,225 ▲365.84 ▲0.7199.71 ▼10.1974.57 ▲37.27
Posts /wp-admin/edit.php2,111 ▲192.02 ▲0.0334.00 ▼0.5434.35 ▲1.59
Add New Post /wp-admin/post-new.php1,537 ▲317.79 ▼5.46703.78 ▲23.9053.80 ▼11.69
Media Library /wp-admin/upload.php1,410 ▲224.12 ▼0.0793.83 ▼23.4369.92 ▲24.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/qlikview-syntax-highlighter/qlikview-highlight.php
    • > /wp-content/plugins/qlikview-syntax-highlighter/qlik-highlight-admin-icons.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: post, syntax, shortcode, page, highlight...

qlikview-syntax-highlighter/qlikview-highlight.php 85% from 13 tests

The principal PHP file in "Qlik for WordPress" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 168 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("qlikview-syntax-highlighter.php" instead of "qlikview-highlight.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
No dangerous file extensions were detected3,084 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
SVG3101,551
CSS316473735
PHP25598452
PO File26060204
JavaScript81934142

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/qlik-code-edit.png15.06KB0.21KB▼ 98.64%
js/qlik-code.png15.20KB0.26KB▼ 98.32%
js/qlik.png2.15KB1.14KB▼ 47.07%