10% vistrail

Code Review | Vistrail

WordPress plugin Vistrail scored10%from 54 tests.

About plugin

  • Plugin page: vistrail
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.1
  • WordPress version: 6.3.1
  • First release: Sep 17, 2015
  • Latest release: Sep 17, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Vistrail (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /717 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'activate_vistrail' not found or invalid function name

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.79ms] Passed 4 tests

Analyzing server-side resources used by Vistrail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.20 ▼5.69
Dashboard /wp-admin3.32 ▲0.0146.79 ▲0.81
Posts /wp-admin/edit.php3.37 ▲0.0147.99 ▼5.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.25 ▼12.70
Media Library /wp-admin/upload.php3.24 ▲0.0137.02 ▲1.37
Vistrail /wp-admin/options-general.php?page=vistrail3.2131.70

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vistrail
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.35 ▼0.938.18 ▲6.2637.74 ▼12.10
Dashboard /wp-admin2,210 ▲224.84 ▼0.09104.52 ▲0.8943.22 ▼1.41
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.1439.31 ▼1.7233.70 ▼1.66
Add New Post /wp-admin/post-new.php1,549 ▲1523.14 ▲4.83641.17 ▲2.8851.97 ▼28.03
Media Library /wp-admin/upload.php1,389 ▲44.24 ▲0.0796.13 ▼2.3742.87 ▼1.34
Vistrail /wp-admin/options-general.php?page=vistrail7902.0324.6224.98

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vistrail/vistrail.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/vistrail/options.php:5

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 97% 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 require attention:
  • Screenshots: Please add images for these screenshots: #1 (Modified settings panel with Vistrail.), #2 (Vistrail settings page.)
The official readme.txt might help

vistrail/vistrail.php Passed 13 tests

The main PHP script in "Vistrail" version 1.0.0 is automatically included on every request by WordPress
30 characters long description:
Enables Vistrail on all pages.

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
Everything looks great! No dangerous files found in this plugin65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221865

PHP code Passed 2 tests

A brief analysis 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.30
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png5.05KB2.86KB▼ 43.40%
screenshot-1.png16.49KB7.58KB▼ 54.04%