94% addquicktag

Code Review | AddQuicktag

WordPress plugin AddQuicktag scored 94% from 54 tests.

About plugin

  • Plugin page: addquicktag
  • Plugin version: 2.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.9.2
  • First release: May 4, 2007
  • Latest release: May 20, 2021
  • Number of updates: 247
  • Update frequency: every 20.8 days
  • Top authors: Bueltge (98.38%)vanvox (1.21%)nullbyte (1.21%)

Code review

54 tests

User reviews

44 reviews

Install metrics

200,000+ active / 1,265,605 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼288.98ms] Passed 4 tests

Server-side resources used by AddQuicktag
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0465.25 ▼3.46
Dashboard /wp-admin3.63 ▲0.2240.58 ▲0.26
Posts /wp-admin/edit.php3.86 ▲0.2142.12 ▲1.06
Add New Post /wp-admin/post-new.php7.10 ▲0.1299.87 ▼1,153.78
Media Library /wp-admin/upload.php3.51 ▲0.2136.59 ▲9.45
AddQuicktag /wp-admin/options-general.php?page=addquicktag/inc/class-settings.php3.5027.31

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AddQuicktag
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲4716.01 ▲0.635.90 ▲0.212.69 ▲0.54
Dashboard /wp-admin2,907 ▲576.09 ▼0.02161.25 ▲29.78178.60 ▼44.96
Posts /wp-admin/edit.php2,693 ▲23.22 ▼0.0168.62 ▲6.51198.95 ▲56.93
Add New Post /wp-admin/post-new.php1,767 ▲5621.61 ▲0.28462.92 ▲3.84156.95 ▼19.27
Media Library /wp-admin/upload.php1,697 ▲25.45 ▼0.03147.66 ▲7.10190.97 ▼55.88
AddQuicktag /wp-admin/options-general.php?page=addquicktag/inc/class-settings.php2,6562.7656.04292.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/addquicktag/inc/class-remove-quicktags.php
    • > /wp-content/plugins/addquicktag/inc/class-imexport.php
    • > /wp-content/plugins/addquicktag/inc/class-tinymce.php
    • > /wp-content/plugins/addquicktag/inc/class-code-quicktags.php
    • > /wp-content/plugins/addquicktag/inc/class-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: quicktag, editor, add buttons, buttons, visual editor...

addquicktag/addquicktag.php 92% from 13 tests

Analyzing the main PHP file in "AddQuicktag" version 2.6.1
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,989 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP62435741,153
JavaScript1097125716
CSS4129120

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity22.83
▷ Minimum class complexity5.00
▷ Maximum class complexity62.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods45
▷ Static methods715.56%
▷ Public methods3884.44%
▷ Protected methods00.00%
▷ Private methods715.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected