100% manage-tinymce-editor

Code Review | Manage TinyMCE Editor

WordPress plugin Manage TinyMCE Editor scored 100% from 54 tests.

About plugin

  • Plugin page: manage-tinymce-ed...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 5.8.1
  • First release: Jul 13, 2017
  • Latest release: Jul 13, 2017
  • Number of updates: 3
  • Update frequency: every 7.3 days
  • Top authors: danieledesantis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 2,389 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼141.73ms] Passed 4 tests

Server-side resources used by Manage TinyMCE Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0435.01 ▲1.74
Dashboard /wp-admin3.12 ▲0.0646.30 ▲2.76
Posts /wp-admin/edit.php3.17 ▲0.0648.37 ▲2.84
Add New Post /wp-admin/post-new.php5.48 ▲0.0487.74 ▼570.45
Media Library /wp-admin/upload.php3.06 ▲0.0633.75 ▼0.95
Manage TinyMCE Editor /wp-admin/options-general.php?page=manage-tinymce-editor3.0328.62

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options
wpmte_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Manage TinyMCE Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.94 ▼0.0510.45 ▼1.0648.02 ▲2.63
Dashboard /wp-admin2,972 ▲385.92 ▼0.16142.04 ▼12.54115.92 ▲9.70
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0072.42 ▼3.5689.74 ▼3.46
Add New Post /wp-admin/post-new.php1,690 ▲718.88 ▲0.20398.22 ▲2.84106.79 ▼6.70
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.02158.57 ▼4.42117.61 ▼0.45
Manage TinyMCE Editor /wp-admin/options-general.php?page=manage-tinymce-editor1,2592.0967.4692.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: editor, visual editor buttons, text editor, tinymce buttons, visual editor...

manage-tinymce-editor/manage-tinymce-editor.php 92% from 13 tests

This is the main PHP file of "Manage TinyMCE Editor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

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
Good job! No executable or dangerous file extensions detected267 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP23764154
SVG60690
CSS17023

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.30
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-subscript.png0.34KB0.22KB▼ 36.13%
img/icon-cut.png0.41KB0.30KB▼ 26.43%
img/icon-paste.png0.32KB0.25KB▼ 22.66%
img/icon-copy.png0.31KB0.24KB▼ 22.29%
img/icon-superscript.png0.33KB0.23KB▼ 32.06%