84% tinymce-table

Code Review | TinyMCE Table

WordPress plugin TinyMCE Table scored84%from 54 tests.

About plugin

  • Plugin page: tinymce-table
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 16, 2014
  • Latest release: Jul 17, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: Gary PEGEOT (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /4,934 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: ▼3.97ms] Passed 4 tests

A check of server-side resources used by TinyMCE Table
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.40 ▲0.88
Dashboard /wp-admin3.31 ▲0.0153.89 ▲3.67
Posts /wp-admin/edit.php3.36 ▲0.0051.10 ▼3.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.76 ▼13.55
Media Library /wp-admin/upload.php3.23 ▲0.0038.96 ▲0.59

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

Browser metrics Passed 4 tests

Checking browser requirements for TinyMCE Table
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.081.57 ▼0.3141.81 ▼4.91
Dashboard /wp-admin2,198 ▲215.53 ▼0.0683.34 ▼9.4437.46 ▼2.72
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0241.61 ▼1.7736.95 ▼6.50
Add New Post /wp-admin/post-new.php1,526 ▼1622.95 ▲4.79619.53 ▼37.4763.43 ▼1.15
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.0096.76 ▼5.4644.03 ▼0.83

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tinymce-table/TinyMCE_Table.php:10

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 on the user side

Optimizations

Plugin configuration 93% 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 to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Click on this button to start editing. Language depends on your Wordpress setting.)
You can take inspiration from this readme.txt

tinymce-table/TinyMCE_Table.php 92% from 13 tests

The entry point to "TinyMCE Table" version 1.0 is a PHP file that has certain tags in its header comment area
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-table.php" instead of "TinyMCE_Table.php")

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
There were no executable files found in this plugin19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP121118
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin