84% simple-select-all-text-box

Code Review | Simple Select All Text Box

WordPress plugin Simple Select All Text Box scored 84% from 54 tests.

About plugin

  • Plugin page: simple-select-all...
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.7
  • WordPress version: 6.3.1
  • First release: Nov 6, 2009
  • Latest release: Feb 6, 2017
  • Number of updates: 12
  • Update frequency: every 220.8 days
  • Top authors: grimmdude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 11,318 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.83ms] Passed 4 tests

Server-side resources used by Simple Select All Text Box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.05 ▼3.94
Dashboard /wp-admin3.31 ▲0.0044.47 ▼1.97
Posts /wp-admin/edit.php3.36 ▲0.0047.77 ▲0.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.81 ▼4.97
Media Library /wp-admin/upload.php3.23 ▲0.0033.38 ▼0.44

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

Browser metrics Passed 4 tests

Simple Select All Text Box: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.18 ▼0.141.54 ▼0.0338.51 ▼5.13
Dashboard /wp-admin2,209 ▲65.86 ▲1.0295.44 ▼0.5838.86 ▼2.49
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0839.70 ▼1.9134.55 ▼0.23
Add New Post /wp-admin/post-new.php1,542 ▲618.46 ▼4.99615.37 ▼18.5052.62 ▼3.27
Media Library /wp-admin/upload.php1,385 ▲34.16 ▼0.0195.07 ▼8.4042.97 ▼5.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-select-all-text-box/simple-select-all-textbox.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Screenshot of a text box in a post.) image not found
The official readme.txt might help

simple-select-all-text-box/simple-select-all-textbox.php 92% from 13 tests

The entry point to "Simple Select All Text Box" version 3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-select-all-text-box.php" instead of "simple-select-all-textbox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192522

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.62KB9.33KB▼ 66.22%