84% marctv-quicktags

Code Review | Simple Comment Quicktags

WordPress plugin Simple Comment Quicktags scored84%from 54 tests.

About plugin

  • Plugin page: marctv-quicktags
  • Plugin version: 3.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Aug 18, 2010
  • Latest release: Nov 15, 2023
  • Number of updates: 55
  • Update frequency: every 88.0 days
  • Top authors: MarcDK (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,202 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Simple Comment Quicktags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.15 ▼9.54
Dashboard /wp-admin3.31 ▲0.0047.46 ▲6.01
Posts /wp-admin/edit.php3.36 ▲0.0048.70 ▼2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.68 ▲0.20
Media Library /wp-admin/upload.php3.23 ▲0.0030.53 ▲1.26

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Comment Quicktags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.34 ▼0.011.78 ▲0.0640.63 ▼2.16
Dashboard /wp-admin2,195 ▲185.60 ▼0.0792.69 ▼1.6740.07 ▲0.17
Posts /wp-admin/edit.php2,103 ▼01.96 ▼0.0640.84 ▲3.1934.19 ▼0.63
Add New Post /wp-admin/post-new.php1,526 ▼023.46 ▲0.15677.02 ▲65.0558.58 ▲1.72
Media Library /wp-admin/upload.php1,403 ▼04.14 ▼0.0698.61 ▼11.8445.43 ▼0.56

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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 | 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marctv-quicktags/quicktags.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: wysiwyg, quicktags, comments

marctv-quicktags/quicktags.php 92% from 13 tests

The main file in "Simple Comment Quicktags" v. 3.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("marctv-quicktags.php" instead of "quicktags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin106 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS17051
PHP1194938
JavaScript10017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin