10% vcgs-toolbox

Code Review | Vcgs Toolbox

WordPress plugin Vcgs Toolbox scored10%from 54 tests.

About plugin

  • Plugin page: vcgs-toolbox
  • Plugin version: 1.9.32
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Dec 21, 2017
  • Number of updates: 69
  • Update frequency: every 20.3 days
  • Top authors: vcgs (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /9,844 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/vcgs-toolbox/settings.php+268
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.87MB] [CPU: ▼50.22ms] Passed 4 tests

An overview of server-side resources used by Vcgs Toolbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.12 ▼0.358.91 ▼35.80
Dashboard /wp-admin3.14 ▼0.1710.75 ▼40.09
Posts /wp-admin/edit.php3.14 ▼0.2111.95 ▼36.19
Add New Post /wp-admin/post-new.php3.14 ▼2.7511.82 ▼88.79
Media Library /wp-admin/upload.php3.14 ▼0.0913.70 ▼21.13
Vcgs Toolbox /wp-admin/admin.php?page=vcgstb3.1410.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Vcgs Toolbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.34 ▼0.011.77 ▼0.2636.51 ▼9.71
Dashboard /wp-admin2,210 ▲335.50 ▼0.1091.67 ▼13.8273.98 ▲31.53
Posts /wp-admin/edit.php2,118 ▲182.03 ▲0.0140.94 ▲1.8133.55 ▼4.74
Add New Post /wp-admin/post-new.php1,539 ▲1323.60 ▲0.56664.32 ▼21.3256.12 ▲1.49
Media Library /wp-admin/upload.php1,418 ▲154.34 ▲0.0696.70 ▼28.3076.70 ▲29.27
Vcgs Toolbox /wp-admin/admin.php?page=vcgstb2,3969.64304.6499.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/vcgs-toolbox/settings.php+268
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vcgstb
    • > Notice in wp-content/plugins/vcgs-toolbox/vcgs-toolbox.php+447
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=vcgstb
    • > User notice in wp-includes/functions.php+5905
    Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

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
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vcgs-toolbox/columna-contapalabras.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/vcgs-toolbox/settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vcgs-toolbox/comentarios-pendientes.php:473
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/vcgs-toolbox/settings.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: analytics, twitter, tweet this, tools, icons

vcgs-toolbox/vcgs-toolbox.php 92% from 13 tests

The main PHP script in "Vcgs Toolbox" version 1.9.32 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 319 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected14,747 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript189971,0447,915
CSS125004893,486
PHP55681,6832,687
PO File4276352659

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity200.00
▷ Minimum class complexity20.00
▷ Maximum class complexity380.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods141
▷ Static methods10.71%
▷ Public methods13394.33%
▷ Protected methods00.00%
▷ Private methods85.67%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
26 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin-page-class/js/select2/select2.png0.60KB0.99KB0.00%
admin-page-class/css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
js/pi-icon.png0.85KB0.48KB▼ 44.04%
admin-page-class/css/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
admin-page-class/css/images/ui-icons_f6cf3b_256x240.png8.68KB4.11KB▼ 52.68%