89% wpglobus-for-black-studio-tinymce-widget

Code Review | WPGlobus for Black Studio TinyMCE Widget

WordPress plugin WPGlobus for Black Studio TinyMCE Widget scored89%from 54 tests.

About plugin

  • Plugin page: wpglobus-for-blac...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 25, 2015
  • Latest release: Dec 5, 2017
  • Number of updates: 18
  • Update frequency: every 46.3 days
  • Top authors: alexgff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,863 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WPGlobus for Black Studio TinyMCE Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.06 ▼1.41
Dashboard /wp-admin3.31 ▲0.0146.41 ▼1.93
Posts /wp-admin/edit.php3.36 ▲0.0046.37 ▼1.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.90 ▼5.20
Media Library /wp-admin/upload.php3.23 ▲0.0032.47 ▼1.91

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WPGlobus for Black Studio TinyMCE Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.441.64 ▼0.0742.69 ▲0.04
Dashboard /wp-admin2,206 ▲184.88 ▼0.0395.69 ▼19.7840.62 ▼7.38
Posts /wp-admin/edit.php2,089 ▲212.05 ▲0.0640.89 ▲6.3737.83 ▲6.46
Add New Post /wp-admin/post-new.php1,514 ▼017.48 ▼0.03598.09 ▼89.0853.57 ▲2.59
Media Library /wp-admin/upload.php1,382 ▼94.17 ▲0.0096.04 ▼15.8941.63 ▼2.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wysiwyg widget, wpglobus, translate, localization, multilingual...

wpglobus-for-black-studio-tinymce-widget/wpglobus-for-black-studio-widget.php 69% from 13 tests

"WPGlobus for Black Studio TinyMCE Widget" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpglobus-for-black-studio-tinymce-widget.php" instead of "wpglobus-for-black-studio-widget.php")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: Please prefix the domain path with a forward slash character ("/")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")

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
No dangerous file extensions were detected506 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25825354
PHP2357597
Markdown124046
JSON1009

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin