79% wp-special-textboxes

Code Review | Special Text Boxes

WordPress plugin Special Text Boxes scored79%from 54 tests.

About plugin

  • Plugin page: wp-special-textboxes
  • Plugin version: 6.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Apr 17, 2009
  • Latest release: Nov 16, 2023
  • Number of updates: 169
  • Update frequency: every 31.5 days
  • Top authors: minimus (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

3,000+ active /242,720 total downloads

Benchmarks

Plugin footprint 65% 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.35MB] [CPU: ▲5.04ms] Passed 4 tests

An overview of server-side resources used by Special Text Boxes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5140.95 ▲1.60
Dashboard /wp-admin3.64 ▲0.3347.80 ▼1.55
Posts /wp-admin/edit.php3.69 ▲0.3353.80 ▲9.99
Add New Post /wp-admin/post-new.php6.37 ▲0.48104.84 ▲12.09
Media Library /wp-admin/upload.php3.50 ▲0.2739.73 ▲10.13
STB /wp-admin/options-general.php?page=stb-settings3.5038.25

Server storage [IO: ▲55.15MB] [DB: ▲0.08MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • The filesystem usage should be lower than 25MB (currently using 55.15MB)
Filesystem: 38 new files
Database: 1 new table, 8 new options
New tables
wp_stb_stylez
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_special_text
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
SpecialTextBoxesAdminSettings
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Special Text Boxes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4214.38 ▼0.391.71 ▼0.0738.32 ▼6.22
Dashboard /wp-admin2,196 ▲225.60 ▼0.0391.64 ▼8.0939.08 ▼8.39
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0740.73 ▲4.6338.32 ▼0.30
Add New Post /wp-admin/post-new.php6,212 ▲4,68619.05 ▼4.19953.37 ▲310.2738.98 ▼10.42
Media Library /wp-admin/upload.php1,407 ▲44.19 ▲0.01103.87 ▲5.8244.77 ▲4.22
STB /wp-admin/options-general.php?page=stb-settings1,29538.251,015.28136.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_stb_stylez
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_special_text
    • widget_recent-posts
    • SpecialTextBoxesAdminSettings
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
Attributes that need to be fixed: The official readme.txt might help

wp-special-textboxes/wp-special-textboxes.php 92% from 13 tests

"Special Text Boxes" version 6.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 229 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,952 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP12278593,056
PO File1195202467
JavaScript44810356
JSON10068
CSS5005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.90
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods99
▷ Static methods00.00%
▷ Public methods8080.81%
▷ Protected methods22.02%
▷ Private methods1717.17%
Functions9
▷ Named functions222.22%
▷ Anonymous functions777.78%
Constants15
▷ Global constants1386.67%
▷ Class constants213.33%
▷ Public constants2100.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.21MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/themes/stb-metro2-theme.png174.16KB42.08KB▼ 75.84%
js/img/wstb.png19.08KB0.13KB▼ 99.33%
images/wstb.png19.08KB0.13KB▼ 99.33%