84% wp-tinymce-tables

Code Review | WP TinyMCE Tables

WordPress plugin WP TinyMCE Tables scored84%from 54 tests.

About plugin

  • Plugin page: wp-tinymce-tables
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Nov 5, 2012
  • Latest release: Nov 16, 2012
  • Number of updates: 9
  • Update frequency: every 1.6 days
  • Top authors: stormuk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /15,792 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by WP TinyMCE Tables
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.37 ▼6.03
Dashboard /wp-admin3.31 ▼0.0349.56 ▼13.77
Posts /wp-admin/edit.php3.36 ▲0.0153.33 ▼2.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.22 ▼5.39
Media Library /wp-admin/upload.php3.23 ▲0.0136.28 ▼0.06

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP TinyMCE Tables
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.301.65 ▼0.1643.92 ▲4.00
Dashboard /wp-admin2,206 ▲215.82 ▼0.04100.83 ▼3.6438.10 ▼7.73
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0140.62 ▲0.4434.06 ▼4.60
Add New Post /wp-admin/post-new.php1,542 ▼218.18 ▲0.08614.86 ▼15.4655.16 ▲1.77
Media Library /wp-admin/upload.php1,391 ▲124.15 ▼0.0994.73 ▼7.9346.36 ▼2.55

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-tinymce-tables/wp-tinymce-tables.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: tinymce, tables, wysiwyg, editor

wp-tinymce-tables/wp-tinymce-tables.php Passed 13 tests

The primary PHP file in "WP TinyMCE Tables" version 1.0 is used by WordPress to initiate all plugin functionality
50 characters long description:
Add Table controls to the WordPress TinyMCE editor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,453 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript85131691,857
HTML4480510
CSS313339
Markdown115034
PHP143613

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin