90% black-studio-tinymce-widget

Code Review | Black Studio TinyMCE Widget

WordPress plugin Black Studio TinyMCE Widget scored 90% from 54 tests.

About plugin

  • Plugin page: black-studio-tiny...
  • Plugin version: 2.7.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.0
  • WordPress version: 6.3.1
  • First release: Nov 10, 2011
  • Latest release: Jul 5, 2022
  • Number of updates: 193
  • Update frequency: every 20.2 days
  • Top authors: marcochiesi (100%)

Code review

54 tests

User reviews

191 reviews

Install metrics

400,000+ active / 10,706,282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▲0.27ms] Passed 4 tests

Analyzing server-side resources used by Black Studio TinyMCE Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.97 ▼3.06
Dashboard /wp-admin3.57 ▲0.2646.76 ▼1.19
Posts /wp-admin/edit.php3.62 ▲0.2644.92 ▲1.49
Add New Post /wp-admin/post-new.php6.09 ▲0.20102.78 ▲7.89
Media Library /wp-admin/upload.php3.43 ▲0.2037.32 ▲3.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Black Studio TinyMCE Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.131.96 ▲0.2143.75 ▼4.66
Dashboard /wp-admin2,203 ▲125.84 ▲0.9398.27 ▼5.1840.48 ▼1.28
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0133.02 ▼4.2331.05 ▼4.10
Add New Post /wp-admin/post-new.php1,533 ▲1923.46 ▲6.08656.29 ▲3.2556.65 ▲3.15
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.0598.03 ▼6.0744.71 ▼3.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_black-studio-tinymce
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

black-studio-tinymce-widget/black-studio-tinymce-widget.php Passed 13 tests

Analyzing the main PHP file in "Black Studio TinyMCE Widget" version 2.7.2
84 characters long description:
Adds a new "Visual Editor" widget type based on the native WordPress TinyMCE editor.

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
Success! There were no dangerous files found in this plugin3,839 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PO File294211,0301,891
PHP92071,2561,049
JavaScript12126153695
CSS47319204

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity22.12
▷ Minimum class complexity5.00
▷ Maximum class complexity65.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes787.50%
Methods114
▷ Static methods1513.16%
▷ Public methods10087.72%
▷ Protected methods1412.28%
▷ Private methods00.00%
Functions15
▷ Named functions15100.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