78% tinymce-and-tinymce-advanced-professsional-formats-and-styles

Code Review | TinyMCE and TinyMCE Advanced Professsional Formats and Styles

WordPress plugin TinyMCE and TinyMCE Advanced Professsional Formats and Styles scored78%from 54 tests.

About plugin

  • Plugin page: tinymce-and-tinym...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Jun 5, 2013
  • Latest release: Mar 5, 2014
  • Number of updates: 16
  • Update frequency: every 17.1 days
  • Top authors: Blackbam (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active /76,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.75ms] Passed 4 tests

Analyzing server-side resources used by TinyMCE and TinyMCE Advanced Professsional Formats and Styles
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.40 ▼1.55
Dashboard /wp-admin3.46 ▲0.1547.92 ▼0.15
Posts /wp-admin/edit.php3.57 ▲0.2151.38 ▼1.24
Add New Post /wp-admin/post-new.php6.04 ▲0.1588.63 ▼20.07
Media Library /wp-admin/upload.php3.38 ▲0.1536.44 ▲1.11
TinyMCE prof. Styles /wp-admin/options-general.php?page=tinymce-and-tinymce-advanced-professsional-formats-and-styles/tinymce-advanced-professional-formats-and-styles.php3.3233.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for TinyMCE and TinyMCE Advanced Professsional Formats and Styles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.19 ▼1.461.78 ▲0.1144.07 ▲0.70
Dashboard /wp-admin2,210 ▲195.92 ▲1.00107.80 ▲3.6240.95 ▼1.50
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0540.51 ▼0.7334.83 ▼0.51
Add New Post /wp-admin/post-new.php1,517 ▲317.61 ▲0.16659.98 ▲25.7149.28 ▼6.92
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.05109.33 ▲5.5046.87 ▲3.51
TinyMCE prof. Styles /wp-admin/options-general.php?page=tinymce-and-tinymce-advanced-professsional-formats-and-styles/tinymce-advanced-professional-formats-and-styles.php1,0962.0628.4432.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=tinymce-and-tinymce-advanced-professsional-formats-and-styles/tinymce-advanced-professional-formats-and-styles.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tinymce-and-tinymce-advanced-professsional-formats-and-styles/tinymce-advanced-professional-formats-and-styles.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-and-tinymce-advanced-professsional-formats-and-styles/tinymce-advanced-professional-formats-and-styles.php:18

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: advanced, custom, editor, style, visual...

tinymce-and-tinymce-advanced-professsional-formats-and-styles/tinymce-advanced-professional-formats-and-styles.php 85% from 13 tests

The primary PHP file in "TinyMCE and TinyMCE Advanced Professsional Formats and Styles" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 194 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tinymce-and-tinymce-advanced-professsional-formats-and-styles.php" instead of "tinymce-advanced-professional-formats-and-styles.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,361 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File4216348862
PHP18640499

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin