10% ngg-tinymce-description-editor

Code Review | NextGEN gallery TinyMCE description editor

WordPress plugin NextGEN gallery TinyMCE description editor scored 10% from 54 tests.

About plugin

  • Plugin page: ngg-tinymce-descr...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.8.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.1
  • WordPress version: 5.8.1
  • First release: Jun 10, 2019
  • Latest release: Jun 10, 2019
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: janipoklar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 362 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/ngg-tinymce-description-editor/ngg-tinymce-description-editor.php+27
    Constant WPINC already defined

Server metrics [RAM: ▼1.87MB] [CPU: ▼188.84ms] Passed 4 tests

Server-side resources used by NextGEN gallery TinyMCE description editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.76 ▼0.965.90 ▼13.33
Dashboard /wp-admin1.78 ▼1.274.85 ▼35.78
Posts /wp-admin/edit.php1.78 ▼1.325.23 ▼45.49
Add New Post /wp-admin/post-new.php1.78 ▼3.655.52 ▼648.84
Media Library /wp-admin/upload.php1.78 ▼1.225.05 ▼25.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

NextGEN gallery TinyMCE description editor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.78 ▼0.089.57 ▲0.2848.26 ▼2.15
Dashboard /wp-admin2,973 ▲435.87 ▼0.09144.55 ▼5.47123.14 ▲0.35
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0079.26 ▲7.2293.80 ▲5.01
Add New Post /wp-admin/post-new.php1,500 ▼18318.57 ▼0.22369.02 ▼11.27115.27 ▲1.49
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.01158.44 ▲4.39129.71 ▲9.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/ngg-tinymce-description-editor/ngg-tinymce-description-editor.php+27
    Constant WPINC already defined

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ngg-tinymce-description-editor/ngg-tinymce-description-editor.php:30

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

ngg-tinymce-description-editor/ngg-tinymce-description-editor.php Passed 13 tests

"NextGEN gallery TinyMCE description editor" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
NextGen Gallery Tinymce Description editor

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 detected9,129 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5114359,102
CSS1005413
PHP123012
Markdown1102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
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

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