94% 360crest-themeone-tinymce-shortcodes

Code Review | TinyMCE shortcode Addon

WordPress plugin TinyMCE shortcode Addon scored 94% from 54 tests.

About plugin

  • Plugin page: 360crest-themeone...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 5.9.2
  • First release: Jun 2, 2018
  • Latest release: Jun 2, 2018
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: 360crest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 577 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼298.89ms] Passed 4 tests

This is a short check of server-side resources used by TinyMCE shortcode Addon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0655.19 ▲4.93
Dashboard /wp-admin3.43 ▲0.0332.70 ▼1.24
Posts /wp-admin/edit.php3.67 ▲0.0338.05 ▲1.00
Add New Post /wp-admin/post-new.php6.91 ▼0.0697.65 ▼1,196.84
Media Library /wp-admin/upload.php3.32 ▲0.0226.80 ▲1.51

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

TinyMCE shortcode Addon: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,906 ▲15216.75 ▲0.9610.69 ▲3.292.90 ▼0.33
Dashboard /wp-admin2,894 ▲336.14 ▼0.07116.31 ▼15.30155.51 ▼8.78
Posts /wp-admin/edit.php2,696 ▲23.23 ▼0.0261.77 ▼0.38138.77 ▼3.33
Add New Post /wp-admin/post-new.php1,673 ▼5020.73 ▼1.22436.04 ▲0.32154.94 ▼5.11
Media Library /wp-admin/upload.php1,700 ▲55.53 ▼0.04140.03 ▲0.15189.02 ▲0.61

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 completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please take a closer look at the following
  • 3× 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/360crest-themeone-tinymce-shortcodes/includes/shortcode-functions.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/360crest-themeone-tinymce-shortcodes/includes/mce/sq_shortcodes_tinymce.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/360crest-themeone-tinymce-shortcodes/includes/scripts.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: slider, shortcode, button, columns, toggle...

360crest-themeone-tinymce-shortcodes/sq-shortcodes.php 92% from 13 tests

This is the main PHP file of "TinyMCE shortcode Addon" 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
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("360crest-themeone-tinymce-shortcodes.php" instead of "sq-shortcodes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected873 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

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.25
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 functions15100.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
11 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/plus.png0.14KB0.09KB▼ 33.33%
tinymce.png17.74KB0.20KB▼ 98.85%
includes/images/li_minus_gold.png0.16KB0.12KB▼ 24.39%
includes/images/minus.png0.13KB0.09KB▼ 32.85%
includes/images/li_minus_black.png0.16KB0.12KB▼ 24.39%