84% textbuilder

Code Review | TextBuilder

WordPress plugin TextBuilder scored84%from 54 tests.

About plugin

  • Plugin page: textbuilder
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: May 5, 2023
  • Latest release: May 5, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: textbuilder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /639 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.32MB] [CPU: ▼3.62ms] Passed 4 tests

An overview of server-side resources used by TextBuilder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3643.38 ▼0.74
Dashboard /wp-admin3.65 ▲0.3551.22 ▼5.84
Posts /wp-admin/edit.php3.70 ▲0.3559.71 ▲9.01
Add New Post /wp-admin/post-new.php6.20 ▲0.3197.44 ▼7.66
Media Library /wp-admin/upload.php3.51 ▲0.2938.42 ▼0.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for TextBuilder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15014.11 ▼0.244.97 ▲3.2141.66 ▼1.19
Dashboard /wp-admin2,211 ▲205.86 ▼0.0499.31 ▼7.7074.32 ▲28.24
Posts /wp-admin/edit.php2,103 ▲141.99 ▼0.0538.81 ▲1.0035.00 ▼0.78
Add New Post /wp-admin/post-new.php6,364 ▲4,83127.78 ▲4.68905.87 ▲219.5636.11 ▼16.07
Media Library /wp-admin/upload.php1,393 ▲54.26 ▼0.01102.19 ▼13.0774.91 ▲25.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/textbuilder/textBuilder.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/textbuilder/Includes/Admin/View/TokenTable.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
8 plugin tags: textbuilder, builder, ai, gpt3, gpt...

textbuilder/textBuilder.php 92% from 13 tests

This is the main PHP file of "TextBuilder" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("textbuilder.php" instead of "textBuilder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,212 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP233868861,833
JavaScript83883245
Sass48047
CSS331143
JSON20032
Markdown14012

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.43
Average class complexity15.38
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods123
▷ Static methods2016.26%
▷ Public methods10585.37%
▷ Protected methods118.94%
▷ Private methods75.69%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/tb-logo.png1.41KB0.64KB▼ 54.69%
public/img/intro-menu-logo.png4.73KB2.82KB▼ 40.42%