84% nextgen-tinymce-description

Code Review | NextGEN TinyMce Description

WordPress plugin NextGEN TinyMce Description scored84%from 54 tests.

About plugin

  • Plugin page: nextgen-tinymce-d...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.7
  • WordPress version: 6.3.1
  • First release: May 17, 2011
  • Latest release: Jun 3, 2014
  • Number of updates: 14
  • Update frequency: every 79.6 days
  • Top authors: webgrafia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /11,351 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by NextGEN TinyMce Description
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.58 ▲1.27
Dashboard /wp-admin3.31 ▲0.0044.17 ▼1.73
Posts /wp-admin/edit.php3.36 ▲0.0043.94 ▼6.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.32 ▼14.74
Media Library /wp-admin/upload.php3.23 ▲0.0036.14 ▲3.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for NextGEN TinyMce Description
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.511.75 ▲0.0337.23 ▼15.17
Dashboard /wp-admin2,203 ▲155.84 ▼0.0496.97 ▼8.5336.70 ▼5.84
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0736.21 ▼4.5231.90 ▼3.35
Add New Post /wp-admin/post-new.php1,534 ▲623.30 ▲5.11683.72 ▲65.2361.03 ▼2.90
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.09102.48 ▼5.4742.11 ▼2.53

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/nextgen-tinymce-description/nextgen-tinymce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Screenshot TinyMCE in Gallery)
The official readme.txt is a good inspiration

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

"NextGEN TinyMce Description" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("nextgen-tinymce-description.php" instead of "nextgen-tinymce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201566

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin