89% jayj-quicktag

Code Review | Jayj Quicktag

WordPress plugin Jayj Quicktag scored 89% from 54 tests.

About plugin

  • Plugin page: jayj-quicktag
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.1
  • WordPress version: 5.9.2
  • First release: Oct 9, 2011
  • Latest release: Aug 28, 2017
  • Number of updates: 42
  • Update frequency: every 51.2 days
  • Top authors: Jayjdk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 5,542 total downloads

Benchmarks

Plugin footprint Passed 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: ▼282.97ms] Passed 4 tests

Analyzing server-side resources used by Jayj Quicktag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0557.78 ▼1.02
Dashboard /wp-admin3.46 ▲0.0482.63 ▲43.48
Posts /wp-admin/edit.php3.69 ▲0.0440.99 ▼5.56
Add New Post /wp-admin/post-new.php6.93 ▼0.0598.74 ▼1,167.22
Media Library /wp-admin/upload.php3.34 ▲0.0471.02 ▲41.92
Jayj Quicktag /wp-admin/options-general.php?page=jayj-quicktag/jayj-quicktag.php3.2925.51

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jayj Quicktag
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲4815.23 ▼0.386.06 ▼0.252.17 ▼0.09
Dashboard /wp-admin2,897 ▲366.14 ▼0.01117.25 ▼20.49151.64 ▼65.78
Posts /wp-admin/edit.php2,691 ▼03.37 ▲0.1364.14 ▲0.71187.14 ▲43.11
Add New Post /wp-admin/post-new.php1,761 ▲9521.38 ▲1.00464.76 ▲26.56159.98 ▼15.20
Media Library /wp-admin/upload.php1,703 ▲115.52 ▲0.00142.24 ▲5.25186.78 ▼59.75
Jayj Quicktag /wp-admin/options-general.php?page=jayj-quicktag/jayj-quicktag.php1,2573.2673.50184.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=jayj-quicktag/jayj-quicktag.php
    • > Notice in wp-content/plugins/jayj-quicktag/jayj-quicktag.php+83
    Trying to access array offset on value of type bool

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/jayj-quicktag/jayj-quicktag.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: quick, quicktags, editor, generator, tag...

jayj-quicktag/jayj-quicktag.php Passed 13 tests

The primary PHP file in "Jayj Quicktag" version 1.3.2 is used by WordPress to initiate all plugin functionality
56 characters long description:
Allows you to easily add custom quicktags to the editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected599 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP28069203
PO File266112171
Markdown142083
LESS1181673
JavaScript2181554
CSS10015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
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