84% wp-quicktags

Code Review | WP Quicktags

WordPress plugin WP Quicktags scored84%from 54 tests.

About plugin

  • Plugin page: wp-quicktags
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1
  • WordPress version: 6.3.1
  • First release: May 26, 2013
  • Latest release: Nov 21, 2022
  • Number of updates: 37
  • Update frequency: every 93.7 days
  • Top authors: brtak (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /4,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.87ms] Passed 4 tests

Server-side resources used by WP Quicktags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.91 ▼8.17
Dashboard /wp-admin3.31 ▼0.0356.34 ▼17.03
Posts /wp-admin/edit.php3.36 ▲0.0152.88 ▲5.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.13 ▼23.96
Media Library /wp-admin/upload.php3.24 ▲0.0139.18 ▼2.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Quicktags
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.35 ▼0.221.81 ▼0.2650.78 ▲3.14
Dashboard /wp-admin2,227 ▲505.64 ▼0.0198.31 ▲8.9143.62 ▼1.27
Posts /wp-admin/edit.php2,102 ▲21.99 ▲0.0540.04 ▲3.6535.83 ▲3.57
Add New Post /wp-admin/post-new.php1,542 ▲518.34 ▲0.31648.06 ▼8.6775.87 ▼1.06
Media Library /wp-admin/upload.php1,396 ▼74.21 ▼0.01100.92 ▼13.9944.81 ▼5.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-quicktags/wp-quicktags.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: html editor, quicktags, edit

wp-quicktags/wp-quicktags.php Passed 13 tests

The principal PHP file in "WP Quicktags" v. 1.3 is loaded by WordPress automatically on each request
71 characters long description:
This simply plugin adds useful buttons to native WordPress HTML editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP142251
CSS10016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions4
▷ Named functions4100.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 were not PNG files found in your plugin