84% simple-taxonomy-wysiwyg

Code Review | Simple Taxonomy WYSIWYG

WordPress plugin Simple Taxonomy WYSIWYG scored84%from 54 tests.

About plugin

  • Plugin page: simple-taxonomy-w...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.3
  • WordPress version: 6.3.1
  • First release: May 28, 2015
  • Latest release: Jul 29, 2015
  • Number of updates: 7
  • Update frequency: every 8.9 days
  • Top authors: raeven (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,848 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.17ms] Passed 4 tests

Analyzing server-side resources used by Simple Taxonomy WYSIWYG
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.16 ▲2.29
Dashboard /wp-admin3.32 ▲0.0242.87 ▼0.03
Posts /wp-admin/edit.php3.37 ▲0.0243.63 ▼0.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.83 ▼17.86
Media Library /wp-admin/upload.php3.24 ▲0.0134.16 ▼2.65

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Taxonomy WYSIWYG
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.101.77 ▲0.1948.84 ▲7.92
Dashboard /wp-admin2,192 ▲115.51 ▼0.1680.74 ▼15.6338.01 ▼8.44
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0435.36 ▼3.3332.57 ▼4.82
Add New Post /wp-admin/post-new.php1,533 ▲523.03 ▲0.15662.63 ▲15.7062.55 ▲11.04
Media Library /wp-admin/upload.php1,391 ▼124.27 ▲0.1595.21 ▼19.3941.02 ▼7.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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 | 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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/simple-taxonomy-wysiwyg/simple-taxonomy-wysiwyg.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-taxonomy-wysiwyg/simple-taxonomy-wysiwyg.php on line 15
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simple-taxonomy-wysiwyg/simple-taxonomy-wysiwyg.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-taxonomy-wysiwyg/simple-taxonomy-wysiwyg.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === simple-taxonomy-wysiwyg === )
The official readme.txt might help

simple-taxonomy-wysiwyg/simple-taxonomy-wysiwyg.php Passed 13 tests

This is the main PHP file of "Simple Taxonomy WYSIWYG" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
129 characters long description:
This is a very simple and lightweight plugin that will convert the taxonomy/category description textarea to a WYSIWYG (TinyMCE).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin82 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131358
JavaScript14024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ 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 methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
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
PNG images were not found in this plugin