78% jkl-reviews

Code Review | JKL Reviews

WordPress plugin JKL Reviews scored78%from 54 tests.

About plugin

  • Plugin page: jkl-reviews
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2014
  • Latest release: Oct 10, 2014
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: jekkilekki (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.21MB] [CPU: ▼15.67ms] Passed 4 tests

Analyzing server-side resources used by JKL Reviews
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0832.86 ▼10.08
Dashboard /wp-admin3.43 ▲0.1253.12 ▲4.83
Posts /wp-admin/edit.php3.56 ▲0.2156.04 ▲6.95
Add New Post /wp-admin/post-new.php4.72 ▼1.1741.69 ▼59.56
Media Library /wp-admin/upload.php3.35 ▲0.1235.84 ▲2.13
JKL Reviews Options /wp-admin/options-general.php?page=jkl-reviews/jkl-reviews.php3.2930.86

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for JKL Reviews
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.39 ▼0.981.78 ▼0.3439.18 ▼2.67
Dashboard /wp-admin2,210 ▲255.04 ▼0.8399.16 ▼3.5539.19 ▼5.11
Posts /wp-admin/edit.php2,269 ▲1773.61 ▲1.6180.57 ▲37.8334.14 ▼4.70
Add New Post /wp-admin/post-new.php6,639 ▲5,09518.93 ▲0.78912.47 ▲276.5467.83 ▲14.76
Media Library /wp-admin/upload.php1,398 ▲134.14 ▼0.0581.98 ▼20.1642.84 ▼1.51
JKL Reviews Options /wp-admin/options-general.php?page=jkl-reviews/jkl-reviews.php8642.0626.8132.24

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=jkl-reviews/jkl-reviews.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method JKL_Review_Options::jkl_display_options_page() should not be called statically
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=jkl-reviews/jkl-reviews.php
    • > Notice in wp-content/plugins/jkl-reviews/jkl-reviews.php+942
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jkl-reviews/jkl-reviews.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

jkl-reviews/jkl-reviews.php 92% from 13 tests

The main PHP script in "JKL Reviews" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,091 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141205611
CSS2624329
Markdown1310103
SVG20226
JavaScript1171322

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions1184.62%
▷ Anonymous functions215.38%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin