84% jkl-pricing-tables

Code Review | JKL Pricing Tables

WordPress plugin JKL Pricing Tables scored84%from 54 tests.

About plugin

  • Plugin page: jkl-pricing-tables
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Sep 18, 2015
  • Number of updates: 9
  • Update frequency: every 11.9 days
  • Top authors: jekkilekki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,735 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.00MB] [CPU: ▼13.04ms] Passed 4 tests

A check of server-side resources used by JKL Pricing Tables
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.03 ▼15.21
Dashboard /wp-admin3.31 ▲0.0148.52 ▼5.61
Posts /wp-admin/edit.php3.36 ▲0.0047.33 ▼7.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.13 ▼23.73
Media Library /wp-admin/upload.php3.23 ▲0.0039.94 ▲5.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for JKL Pricing Tables
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.20 ▼0.072.04 ▲0.2544.22 ▼0.42
Dashboard /wp-admin2,198 ▲215.70 ▲0.1387.76 ▼13.9642.71 ▼1.38
Posts /wp-admin/edit.php2,103 ▲61.97 ▲0.0339.47 ▲2.7835.70 ▼0.09
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▲0.12680.07 ▼15.0760.53 ▲4.17
Media Library /wp-admin/upload.php1,400 ▼34.23 ▼0.03110.00 ▲8.2449.61 ▲5.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jkl-pricing-tables/jkl-pricing-tables.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention: Please take inspiration from this readme.txt

jkl-pricing-tables/jkl-pricing-tables.php 92% from 13 tests

The principal PHP file in "JKL Pricing Tables" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Everything looks great! No dangerous files found in this plugin294 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1350131
CSS117112
JavaScript18441
PHP192410

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin