84% visual-term-description-editor

Code Review | Visual Term Description Editor

WordPress plugin Visual Term Description Editor scored84%from 54 tests.

About plugin

  • Plugin page: visual-term-descr...
  • Plugin version: 1.8.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.8.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2013
  • Latest release: Nov 19, 2021
  • Number of updates: 35
  • Update frequency: every 86.6 days
  • Top authors: bungeshea (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

10,000+ active /78,252 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.39ms] Passed 4 tests

An overview of server-side resources used by Visual Term Description Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1243.24 ▼0.77
Dashboard /wp-admin3.42 ▲0.1152.60 ▼1.00
Posts /wp-admin/edit.php3.54 ▲0.1853.60 ▲3.71
Add New Post /wp-admin/post-new.php6.00 ▲0.1199.15 ▼9.25
Media Library /wp-admin/upload.php3.35 ▲0.1138.57 ▼2.55

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Visual Term Description Editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.111.67 ▲0.1844.32 ▲4.33
Dashboard /wp-admin2,192 ▲215.63 ▲0.0796.52 ▲5.3050.13 ▲8.62
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0444.65 ▲6.4237.08 ▼1.55
Add New Post /wp-admin/post-new.php1,531 ▲523.25 ▲0.17651.22 ▼51.0268.19 ▲16.66
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.17100.99 ▼16.3945.21 ▼6.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 fix the following items
  • 101× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/MiaoxingInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/visual-term-description-editor/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

visual-term-description-editor/visual-term-description-editor.php 92% from 13 tests

The main PHP script in "Visual Term Description Editor" version 1.8.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
Good job! No executable or dangerous file extensions detected3,203 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
PHP1175498502,749
JSON310301
YAML3313123
JavaScript110330

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.81
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes108
▷ Abstract classes10.93%
▷ Concrete classes10799.07%
▷ Final classes00.00%
Methods144
▷ Static methods1812.50%
▷ Public methods10069.44%
▷ Protected methods3423.61%
▷ Private methods106.94%
Functions10
▷ Named functions440.00%
▷ Anonymous functions660.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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