84% jkl-grammar

Code Review | JKL Grammar

WordPress plugin JKL Grammar scored84%from 54 tests.

About plugin

  • Plugin page: jkl-grammar
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Nov 28, 2018
  • Latest release: Nov 28, 2018
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: jekkilekki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.45ms] Passed 4 tests

An overview of server-side resources used by JKL Grammar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1635.91 ▲0.22
Dashboard /wp-admin3.44 ▲0.1043.91 ▼14.87
Posts /wp-admin/edit.php3.50 ▲0.1448.17 ▲4.73
Add New Post /wp-admin/post-new.php6.28 ▲0.3995.10 ▲1.12
Media Library /wp-admin/upload.php3.36 ▲0.1431.86 ▼4.25
Usage /wp-admin/edit-tags.php?taxonomy=usage&post_type=grammar3.3642.64
Books /wp-admin/edit-tags.php?taxonomy=book&post_type=grammar3.3635.07
All Grammar /wp-admin/edit.php?post_type=grammar3.4140.13
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=grammar3.3632.28
Expressions /wp-admin/edit-tags.php?taxonomy=expression&post_type=grammar3.3631.60
Levels /wp-admin/edit-tags.php?taxonomy=level&post_type=grammar3.3632.02
Add New /wp-admin/post-new.php?post_type=grammar6.2778.90
Parts of Speech /wp-admin/edit-tags.php?taxonomy=part-of-speech&post_type=grammar3.3630.17

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

JKL Grammar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲9614.46 ▼0.091.78 ▼0.1741.99 ▲2.30
Dashboard /wp-admin2,270 ▲825.85 ▼0.06106.87 ▲2.8337.65 ▼7.08
Posts /wp-admin/edit.php2,153 ▲672.03 ▼0.0238.99 ▼2.0336.20 ▲1.60
Add New Post /wp-admin/post-new.php1,574 ▲4123.24 ▲0.20660.69 ▲13.2362.00 ▲8.49
Media Library /wp-admin/upload.php1,449 ▲614.22 ▲0.0396.08 ▼3.3140.92 ▼2.38
Usage /wp-admin/edit-tags.php?taxonomy=usage&post_type=grammar1,2952.1427.5627.65
Books /wp-admin/edit-tags.php?taxonomy=book&post_type=grammar1,3272.1726.4326.51
All Grammar /wp-admin/edit.php?post_type=grammar1,2391.9532.7131.20
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=grammar1,3682.1726.2429.14
Expressions /wp-admin/edit-tags.php?taxonomy=expression&post_type=grammar1,2982.1726.0424.99
Levels /wp-admin/edit-tags.php?taxonomy=level&post_type=grammar1,3292.1727.8929.14
Add New /wp-admin/post-new.php?post_type=grammar6,29823.06799.5928.21
Parts of Speech /wp-admin/edit-tags.php?taxonomy=part-of-speech&post_type=grammar1,2952.1726.7624.95

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/jkl-grammar/archive-grammar.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jkl-grammar/jkl-grammar.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/jkl-grammar/single-grammar.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jkl-grammar/react-functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/jkl-grammar/react-grammar-index.php:9

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #3 (Archive Page) image required
The official readme.txt might help

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

This is the main PHP file of "JKL Grammar" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
No dangerous file extensions were detected639 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP584121564
Markdown143056
JavaScript15119

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions11
▷ Named functions11100.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 are no PNG files in this plugin