84% da-tinymce-restore

Code Review | TinyMCE Recover

WordPress plugin TinyMCE Recover scored 84% from 54 tests.

About plugin

  • Plugin page: da-tinymce-restore
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Dec 10, 2016
  • Latest release: Jun 15, 2019
  • Number of updates: 10
  • Update frequency: every 91.3 days
  • Top authors: DanieleAlessandra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 9,884 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by TinyMCE Recover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.59 ▲1.85
Dashboard /wp-admin3.31 ▲0.0145.17 ▼3.74
Posts /wp-admin/edit.php3.36 ▲0.0046.97 ▼2.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.86 ▼16.96
Media Library /wp-admin/upload.php3.23 ▲0.0034.32 ▼0.79

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for TinyMCE Recover
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.28 ▼1.184.94 ▲2.8647.45 ▲2.71
Dashboard /wp-admin2,206 ▲214.85 ▼1.04102.59 ▲1.4738.18 ▼6.39
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0735.54 ▼6.3231.89 ▼4.15
Add New Post /wp-admin/post-new.php1,533 ▲1223.15 ▼0.19677.96 ▲35.8264.07 ▼2.11
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.1395.09 ▼2.1440.75 ▼1.75

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Everything seems fine, however 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× 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/da-tinymce-restore/da-tinymce-restore.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

da-tinymce-restore/da-tinymce-restore.php Passed 13 tests

The main file in "TinyMCE Recover" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
114 characters long description:
Ripristina i pusanti “Sottolineato” e “Giustificato” rimossi dall’editor di WordPress dalla versione 4.7

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

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin