84% 360crest-themeone-tinymce-shortcodes

Code Review | TinyMCE shortcode Addon

WordPress plugin TinyMCE shortcode Addon scored84%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: 6.3.1
  • 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 /819 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.94ms] Passed 4 tests

A check of server-side resources used by TinyMCE shortcode Addon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.14 ▲2.38
Dashboard /wp-admin3.33 ▲0.0349.21 ▼2.66
Posts /wp-admin/edit.php3.38 ▲0.0342.72 ▼4.33
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.87 ▼19.34
Media Library /wp-admin/upload.php3.25 ▲0.0232.36 ▼1.42

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

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

Browser metrics Passed 4 tests

A check of browser resources used by TinyMCE shortcode Addon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲13913.67 ▼0.886.15 ▲4.2739.94 ▲0.03
Dashboard /wp-admin2,211 ▲264.85 ▲0.02103.99 ▼12.1539.07 ▼7.91
Posts /wp-admin/edit.php2,094 ▲52.18 ▲0.1537.78 ▼0.9733.14 ▼3.78
Add New Post /wp-admin/post-new.php1,531 ▲723.33 ▼0.05666.31 ▲36.7053.20 ▲2.26
Media Library /wp-admin/upload.php1,393 ▲24.27 ▲0.0297.53 ▼3.8442.59 ▼1.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following
  • 3× 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/360crest-themeone-tinymce-shortcodes/includes/scripts.php:18
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: toggle, columns, slider, shortcode, button...

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

The main PHP file in "TinyMCE shortcode Addon" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected873 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No 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

PNG files should be compressed to save space and minimize bandwidth usage
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%
includes/images/plus-hover.png17.30KB0.09KB▼ 99.46%
includes/images/li_minus_black.png0.16KB0.12KB▼ 24.39%
includes/images/li_minus_blue.png0.16KB0.12KB▼ 24.39%
includes/images/li_minus_orange.png0.16KB0.12KB▼ 24.39%