90% textboxes

Code Review | Textboxes

WordPress plugin Textboxes scored90%from 54 tests.

About plugin

  • Plugin page: textboxes
  • Plugin version: 0.1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Oct 26, 2017
  • Latest release: May 21, 2019
  • Number of updates: 7
  • Update frequency: every 83.9 days
  • Top authors: brightvesseldev (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /1,255 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.01MB] [CPU: ▼7.88ms] Passed 4 tests

Analyzing server-side resources used by Textboxes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.49 ▲0.04
Dashboard /wp-admin3.33 ▼0.0246.58 ▼12.93
Posts /wp-admin/edit.php3.39 ▲0.0243.00 ▼5.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0283.65 ▼13.51
Media Library /wp-admin/upload.php3.26 ▲0.0235.53 ▲1.62

Server storage [IO: ▲0.02MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Textboxes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.23 ▼0.121.62 ▼0.5338.47 ▼6.25
Dashboard /wp-admin2,204 ▲275.56 ▼0.0283.11 ▼8.6242.68 ▼3.19
Posts /wp-admin/edit.php2,109 ▲121.95 ▼0.0535.02 ▼3.2436.58 ▲4.56
Add New Post /wp-admin/post-new.php1,537 ▲923.24 ▲0.15630.33 ▼40.7850.06 ▼0.29
Media Library /wp-admin/upload.php1,406 ▲64.29 ▲0.0496.57 ▼11.7946.37 ▼1.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: forms, gravityforms, gravity

textboxes/main.php 92% from 13 tests

The principal PHP file in "Textboxes" v. 0.1.3.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("textboxes.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281171

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/warning.png3.62KB0.76KB▼ 78.94%
media/alert.png4.51KB1.55KB▼ 65.50%
media/caution.png6.01KB2.07KB▼ 65.55%