84% textbox

Code Review | WP Textbox Plugin

WordPress plugin WP Textbox Plugin scored84%from 54 tests.

About plugin

  • Plugin page: textbox
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.3
  • WordPress version: 6.3.1
  • First release: Sep 8, 2015
  • Latest release: Sep 8, 2015
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: williamhrs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,335 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.86ms] Passed 4 tests

An overview of server-side resources used by WP Textbox Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.44 ▼4.95
Dashboard /wp-admin3.39 ▲0.0845.41 ▼10.15
Posts /wp-admin/edit.php3.50 ▲0.1452.38 ▲8.09
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.48 ▼4.28
Media Library /wp-admin/upload.php3.31 ▲0.0836.05 ▼0.07
Textbox /wp-admin/options-general.php?page=wp_textbox3.2831.67

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Illegal file modification detected: 4 files (0.00KB) outside of "wp-content/plugins/textbox/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/textbox/Explicaa\314\201\342\210\206o dos Rest's.txt"
    • (new file) "wp-content/plugins/textbox/tests/Exemplos de respostas/Campos obrigat\302\242rios.txt"
    • (new file) "wp-content/plugins/textbox/tests/Exemplos de respostas/Token Inv\342\200\240lido.txt"
    • (new file) "wp-content/plugins/textbox/tests/Exemplos de respostas/Token n\342\210\206o configurado.txt"
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
wp_textbox_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Textbox Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.29 ▼1.071.65 ▼0.1839.13 ▼6.71
Dashboard /wp-admin2,210 ▲254.84 ▼1.00108.66 ▼22.0841.67 ▼3.76
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0140.65 ▲3.0834.44 ▼0.48
Add New Post /wp-admin/post-new.php1,537 ▲123.37 ▲0.21678.34 ▲20.4550.93 ▼2.96
Media Library /wp-admin/upload.php1,392 ▲14.19 ▲0.0196.59 ▼1.0342.70 ▲0.21
Textbox /wp-admin/options-general.php?page=wp_textbox8982.0834.5527.75

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 detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • wp_textbox_options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 fix the following
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/textbox/wp-textbox-settings.php
    • > /wp-content/plugins/textbox/wp-textbox-plugin.php
    • > /wp-content/plugins/textbox/tests/teste.php
    • > /wp-content/plugins/textbox/tests/addPost.php
    • > /wp-content/plugins/textbox/tests/getUserList.php
    • > /wp-content/plugins/textbox/tests/getCategoryList.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: content marketing, textbox, content

textbox/wp-textbox-plugin.php 92% from 13 tests

"WP Textbox Plugin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("textbox.php" instead of "wp-textbox-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected456 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP613885415
PO File1121241

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity24.50
▷ Minimum class complexity3.00
▷ Maximum class complexity46.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2689.66%
▷ Protected methods310.34%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin