84% luckywp-term-description-rich-text

Code Review | LuckyWP Term Description Rich Text

WordPress plugin LuckyWP Term Description Rich Text scored84%from 54 tests.

About plugin

  • Plugin page: luckywp-term-desc...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Aug 16, 2020
  • Number of updates: 7
  • Update frequency: every 95.7 days
  • Top authors: theluckywp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /3,801 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.02MB] [CPU: ▼12.59ms] Passed 4 tests

A check of server-side resources used by LuckyWP Term Description Rich Text
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.73 ▲4.39
Dashboard /wp-admin3.33 ▼0.0151.31 ▼17.07
Posts /wp-admin/edit.php3.44 ▲0.0950.10 ▼1.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.68 ▼34.36
Media Library /wp-admin/upload.php3.25 ▲0.0338.62 ▲2.53

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

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

Browser metrics Passed 4 tests

LuckyWP Term Description Rich Text: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.29 ▲0.011.80 ▲0.1147.35 ▲6.63
Dashboard /wp-admin2,195 ▲145.60 ▼0.0993.81 ▼11.1742.99 ▼2.80
Posts /wp-admin/edit.php2,097 ▼02.05 ▲0.0140.73 ▲4.9134.46 ▲0.90
Add New Post /wp-admin/post-new.php1,545 ▼123.36 ▲0.22603.90 ▼22.2251.25 ▲5.19
Media Library /wp-admin/upload.php1,403 ▲64.26 ▲0.0796.38 ▼0.8742.40 ▼4.85

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\termDescriptionRichText\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-term-description-rich-text/admin/Admin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\termDescriptionRichText\\admin\\Admin' not found in wp-content/plugins/luckywp-term-description-rich-text/config/plugin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\termDescriptionRichText\\core\\base\\ServiceLocator' not found in wp-content/plugins/luckywp-term-description-rich-text/core/base/BasePlugin.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\termDescriptionRichText\\core\\base\\BasePlugin' not found in wp-content/plugins/luckywp-term-description-rich-text/plugin/Plugin.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\termDescriptionRichText\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-term-description-rich-text/core/base/ServiceLocator.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\termDescriptionRichText\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-term-description-rich-text/front/Front.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function luckywp\\termDescriptionRichText\\core\\base\\add_action() in wp-content/plugins/luckywp-term-description-rich-text/core/base/BasePlugin.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: term description, wysiwyg, html, terms, tinymce

luckywp-term-description-rich-text/luckywp-term-description-rich-text.php 92% from 13 tests

The main file in "LuckyWP Term Description Rich Text" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin480 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11104205478
CSS1001
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.89
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes9
▷ Abstract classes222.22%
▷ Concrete classes777.78%
▷ Final classes00.00%
Methods39
▷ Static methods512.82%
▷ Public methods3179.49%
▷ Protected methods717.95%
▷ Private methods12.56%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin