84% addquicktag

Code Review | AddQuicktag

WordPress plugin AddQuicktag scored 84% 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: 6.3.1
  • 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

100,000+ active / 1,335,911 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.26ms] Passed 4 tests

An overview of server-side resources used by AddQuicktag
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.48 ▼5.72
Dashboard /wp-admin3.36 ▲0.0547.76 ▼0.28
Posts /wp-admin/edit.php3.47 ▲0.1146.19 ▼3.03
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.17 ▼20.02
Media Library /wp-admin/upload.php3.28 ▲0.0534.09 ▲1.58
AddQuicktag /wp-admin/options-general.php?page=addquicktag/inc/class-settings.php3.2531.33

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for AddQuicktag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.24 ▼1.121.73 ▼0.3737.25 ▼11.19
Dashboard /wp-admin2,210 ▲255.90 ▼0.00111.05 ▼5.9944.21 ▼1.65
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0037.86 ▲3.8937.97 ▲4.74
Add New Post /wp-admin/post-new.php1,523 ▼517.84 ▼0.40680.44 ▲63.7951.50 ▲3.11
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0598.15 ▼4.9743.20 ▼2.48
AddQuicktag /wp-admin/options-general.php?page=addquicktag/inc/class-settings.php1,9551.7728.1465.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 take a closer look at the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/addquicktag/inc/class-imexport.php
    • > /wp-content/plugins/addquicktag/inc/class-code-quicktags.php
    • > /wp-content/plugins/addquicktag/inc/class-tinymce.php
    • > /wp-content/plugins/addquicktag/inc/class-settings.php
    • > /wp-content/plugins/addquicktag/inc/class-remove-quicktags.php

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: quicktag, editor, add buttons, buttons, tinymce...

addquicktag/addquicktag.php 92% from 13 tests

The main file in "AddQuicktag" v. 2.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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,989 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP62435741,153
JavaScript1097125716
CSS4129120

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin