84% nextgen-tinymce-gallery-description

Code Review | NextGEN TinyMce Gallery Description

WordPress plugin NextGEN TinyMce Gallery Description scored84%from 54 tests.

About plugin

  • Plugin page: nextgen-tinymce-g...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.7
  • WordPress version: 6.3.1
  • First release: Jun 29, 2014
  • Latest release: Jun 29, 2014
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: bengo-matus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,486 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
Install script ran successfully

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

An overview of server-side resources used by NextGEN TinyMce Gallery Description
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.46 ▲0.56
Dashboard /wp-admin3.31 ▲0.0150.61 ▼1.98
Posts /wp-admin/edit.php3.36 ▲0.0053.39 ▲0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.33 ▼5.44
Media Library /wp-admin/upload.php3.23 ▲0.0039.74 ▲3.48

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for NextGEN TinyMce Gallery Description
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.671.72 ▼0.1340.43 ▼4.09
Dashboard /wp-admin2,203 ▲155.79 ▲0.91102.13 ▼11.5345.41 ▲5.53
Posts /wp-admin/edit.php2,089 ▲32.03 ▲0.0241.42 ▲2.5735.46 ▲2.10
Add New Post /wp-admin/post-new.php1,535 ▲1623.08 ▲0.01646.33 ▼46.0958.95 ▼3.13
Media Library /wp-admin/upload.php1,388 ▲64.16 ▼0.1398.58 ▼8.8146.96 ▼1.46

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 were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/nextgen-tinymce-gallery-description/nextgen-tinymce-description.php

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Screenshot TinyMCE in Gallery)
You can take inspiration from this readme.txt

nextgen-tinymce-gallery-description/nextgen-tinymce-description.php 92% from 13 tests

"NextGEN TinyMce Gallery Description" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("nextgen-tinymce-gallery-description.php" instead of "nextgen-tinymce-description.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin498 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG400453
PHP110827
JavaScript40113
CSS4004
Markdown1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.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
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin