84% tinymce-visualblocks

Code Review | TinyMCE VisualBlocks

WordPress plugin TinyMCE VisualBlocks scored84%from 54 tests.

About plugin

  • Plugin page: tinymce-visualblocks
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.2
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Feb 2, 2018
  • Number of updates: 14
  • Update frequency: every 88.5 days
  • Top authors: ryu263 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /17,549 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by TinyMCE VisualBlocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.63 ▼7.44
Dashboard /wp-admin3.31 ▼0.0350.15 ▼19.26
Posts /wp-admin/edit.php3.36 ▲0.0146.86 ▼4.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.59 ▼7.61
Media Library /wp-admin/upload.php3.23 ▲0.0034.29 ▲0.40

Server storage [IO: ▲0.06MB] [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: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

TinyMCE VisualBlocks: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.77 ▼0.651.58 ▼0.3542.63 ▼1.14
Dashboard /wp-admin2,203 ▲154.89 ▼0.03112.55 ▼4.5048.23 ▲5.20
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0038.09 ▼2.3435.15 ▲0.98
Add New Post /wp-admin/post-new.php1,542 ▲818.29 ▼4.85632.28 ▼13.5554.66 ▼13.85
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0398.53 ▼7.8542.59 ▼1.14

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tinymce-visualblocks/tinymce-visualblocks.php:15

User-side errors Passed 1 test

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

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
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (TinyMCE VisualBlocks)
You can look at the official readme.txt

tinymce-visualblocks/tinymce-visualblocks.php Passed 13 tests

"TinyMCE VisualBlocks" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
View VisualBlocks in WordPress Visual Editor

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
There were no executable files found in this plugin188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1190116
JavaScript2171259
PHP13913

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png54.60KB21.43KB▼ 60.75%
img/visualblocks.png0.24KB0.10KB▼ 57.49%