93% tinymce-for-wp-e-commerce-additional-description

Code Review | Add TinyMCE to the Additional Description field

WordPress plugin Add TinyMCE to the Additional Description field scored 93% from 54 tests.

About plugin

  • Plugin page: tinymce-for-wp-e-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jan 8, 2012
  • Latest release: Jan 8, 2012
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: LeaderProjects (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,982 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Add TinyMCE to the Additional Description field
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1247.00 ▲20.71
Dashboard /wp-admin3.06 ▲0.0145.66 ▼1.31
Posts /wp-admin/edit.php3.11 ▲0.0153.54 ▲3.21
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.95 ▼585.46
Media Library /wp-admin/upload.php3.01 ▲0.0037.21 ▼0.78

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Add TinyMCE to the Additional Description field
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13116.31 ▲0.6611.37 ▼1.2957.00 ▲2.45
Dashboard /wp-admin2,970 ▲365.96 ▼0.04161.61 ▲0.38172.70 ▲57.04
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0070.29 ▼6.82100.22 ▼1.57
Add New Post /wp-admin/post-new.php1,621 ▼6221.39 ▲2.83323.35 ▼63.81121.10 ▼1.44
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02170.32 ▲12.82127.83 ▲1.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-for-wp-e-commerce-additional-description/wpec_tinymce_ad.php:65

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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (WordPress 3.3.1: Showing the TinyMCE Editor on the WP E-Commerce products Additional Description field.) image missing
Please take inspiration from this readme.txt

tinymce-for-wp-e-commerce-additional-description/wpec_tinymce_ad.php 85% from 13 tests

"Add TinyMCE to the Additional Description field" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tinymce-for-wp-e-commerce-additional-description.php" instead of "wpec_tinymce_ad.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152341

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin