10% vivio-swift

Code Review | Vivio Swift

WordPress plugin Vivio Swift scored10%from 54 tests.

About plugin

  • Plugin page: vivio-swift
  • Plugin version: 2020040301...
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Feb 19, 2018
  • Latest release: Apr 4, 2020
  • Number of updates: 8
  • Update frequency: every 97.4 days
  • Top authors: viviotech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /662 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
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/vivio-swift/vivio-swift.php+59
    Non-static method Vivio_Swift_Config::get_instance() should not be called statically

Server metrics [RAM: ▼1.90MB] [CPU: ▼59.25ms] Passed 4 tests

Server-side resources used by Vivio Swift
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.91 ▼36.55
Dashboard /wp-admin2.12 ▼1.225.60 ▼52.55
Posts /wp-admin/edit.php2.13 ▼1.236.36 ▼41.29
Add New Post /wp-admin/post-new.php2.13 ▼3.776.12 ▼106.59
Media Library /wp-admin/upload.php2.13 ▼1.115.54 ▼29.08
Dashboard /wp-admin/admin.php?page=vivio-swift2.135.40
Exclusions /wp-admin/admin.php?page=vivio-swift-exclusions2.136.77
Cache /wp-admin/admin.php?page=vivio-swift-cache2.134.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options
vivio_swift_configs
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Vivio Swift: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲6413.33 ▼1.044.99 ▲2.9842.49 ▼5.16
Dashboard /wp-admin2,238 ▲505.86 ▼0.03109.40 ▲0.0540.90 ▲2.47
Posts /wp-admin/edit.php2,124 ▲352.05 ▼0.0034.94 ▼3.3436.18 ▲0.84
Add New Post /wp-admin/post-new.php1,563 ▲4423.41 ▼0.03672.54 ▼15.8257.33 ▼7.33
Media Library /wp-admin/upload.php1,426 ▲354.22 ▼0.0495.17 ▼2.5642.38 ▼1.00
Dashboard /wp-admin/admin.php?page=vivio-swift1,1274.7349.4427.64
Exclusions /wp-admin/admin.php?page=vivio-swift-exclusions1,0704.6642.7426.66
Cache /wp-admin/admin.php?page=vivio-swift-cache9904.7743.5822.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/vivio-swift/vivio-swift.php+59
    Non-static method Vivio_Swift_Config::get_instance() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vivio-swift-cache
    • > Deprecated in wp-content/plugins/vivio-swift/vivio-swift.php+59
    Non-static method Vivio_Swift_Config::get_instance() should not be called statically

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 take a closer look at the following
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/vivio-swift/lib/minify/JS.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Vivio_Swift_Async_Request' not found in wp-content/plugins/vivio-swift/classes/vivio-swift-utility-bgproc.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/vivio-swift/lib/minify/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/vivio-swift/lib/minify/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Vivio_Swift_Admin_Messages' not found in wp-content/plugins/vivio-swift/admin/vivio-swift-cache-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Vivio_Swift_Admin_Messages' not found in wp-content/plugins/vivio-swift/admin/vivio-swift-compress-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Vivio_Swift_Admin_Messages' not found in wp-content/plugins/vivio-swift/admin/vivio-swift-exclusions-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Vivio_Swift_Admin_Messages' not found in wp-content/plugins/vivio-swift/admin/vivio-swift-dashboard-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/vivio-swift/lib/minify/Exceptions/IOException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Vivio_Swift_Background_Process' not found in wp-content/plugins/vivio-swift/classes/vivio-swift-proc-preload.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: faster, optimize, performance, accelerate, cache

vivio-swift/vivio-swift.php 92% from 13 tests

The main PHP file in "Vivio Swift" ver. 2020040301... adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "2020040301...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,716 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP401,2742,1366,291
CSS1172242
JavaScript21111101
SVG10082

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.32
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes40
▷ Abstract classes615.00%
▷ Concrete classes3485.00%
▷ Final classes00.00%
Methods343
▷ Static methods6418.66%
▷ Public methods28984.26%
▷ Protected methods5114.87%
▷ Private methods30.87%
Functions13
▷ Named functions17.69%
▷ Anonymous functions1292.31%
Constants25
▷ Global constants2496.00%
▷ Class constants14.00%
▷ Public constants1100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/plugin-icon.png0.47KB0.56KB0.00%