83% shared-vision

Code Review | Shared Vision

WordPress plugin Shared Vision scored83%from 54 tests.

About plugin

  • Plugin page: shared-vision
  • Plugin version: 1.0.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 20, 2023
  • Latest release: Apr 18, 2023
  • Number of updates: 4
  • Update frequency: every 15.2 days
  • Top authors: sharedvision (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /283 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.68ms] Passed 4 tests

This is a short check of server-side resources used by Shared Vision
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.91 ▼3.77
Dashboard /wp-admin3.44 ▲0.1050.87 ▼8.49
Posts /wp-admin/edit.php3.55 ▲0.2049.57 ▲2.24
Add New Post /wp-admin/post-new.php6.02 ▲0.1479.98 ▼24.69
Media Library /wp-admin/upload.php3.36 ▲0.1436.40 ▲2.85
Shared Vision /wp-admin/options-general.php?page=sharedvision-settings3.3432.45

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Shared Vision
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9214.62 ▲0.2259.97 ▲58.2541.32 ▼3.39
Dashboard /wp-admin2,213 ▲225.90 ▲1.01110.38 ▲9.4942.12 ▼2.13
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0240.62 ▼1.5439.33 ▲1.12
Add New Post /wp-admin/post-new.php6,198 ▲4,66518.96 ▼4.35906.13 ▲289.4951.67 ▼5.23
Media Library /wp-admin/upload.php1,389 ▲14.18 ▼0.0197.71 ▼6.1440.62 ▼2.45
Shared Vision /wp-admin/options-general.php?page=sharedvision-settings8002.0323.1422.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_sharedvision_embed

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/shared-vision/templates/admin/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shared-vision/templates/embed.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/shared-vision/app/Builders/Elementor/Embed.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shared-vision/app/Widget/Embed.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/shared-vision/app/Builders/DiviBuilder/Embed.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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: These screenshots do not have images: #1 (Shared Vision plugin settings), #2 (Shared Vision embed block supports Gutenberg, Divi, Elementor, and WP Bakery), #3 (Shared Vision widget on the frontend)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === shared-vision === )
  • Tags: Please add at least on tag
The official readme.txt might help

shared-vision/sharedvision.php 92% from 13 tests

"Shared Vision" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("shared-vision.php" instead of "sharedvision.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin765 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP2426976715
JavaScript15150

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity5.16
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods58
▷ Static methods2136.21%
▷ Public methods5696.55%
▷ Protected methods23.45%
▷ Private methods00.00%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants14
▷ Global constants642.86%
▷ Class constants857.14%
▷ Public constants8100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.67MB with 0.43MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
interface/assets/icon.png4.41KB2.77KB▼ 37.25%
assets/screenshot-2.png53.78KB11.16KB▼ 79.25%
assets/screenshot-3.png531.03KB166.38KB▼ 68.67%
assets/screenshot-1.png95.22KB25.03KB▼ 73.72%