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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.91 ▼3.77 |
Dashboard /wp-admin | 3.44 ▲0.10 | 50.87 ▼8.49 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 49.57 ▲2.24 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 79.98 ▼24.69 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 36.40 ▲2.85 |
Shared Vision /wp-admin/options-general.php?page=sharedvision-settings | 3.34 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.62 ▲0.22 | 59.97 ▲58.25 | 41.32 ▼3.39 |
Dashboard /wp-admin | 2,213 ▲22 | 5.90 ▲1.01 | 110.38 ▲9.49 | 42.12 ▼2.13 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.05 ▲0.02 | 40.62 ▼1.54 | 39.33 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6,198 ▲4,665 | 18.96 ▼4.35 | 906.13 ▲289.49 | 51.67 ▼5.23 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.18 ▼0.01 | 97.71 ▼6.14 | 40.62 ▼2.45 |
Shared Vision /wp-admin/options-general.php?page=sharedvision-settings | 800 | 2.03 | 23.14 | 22.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 269 | 76 | 715 |
JavaScript | 1 | 5 | 1 | 50 |
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 code | 0.35 |
Average class complexity | 5.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 21 | 36.21% |
▷ Public methods | 56 | 96.55% |
▷ Protected methods | 2 | 3.45% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 8 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
interface/assets/icon.png | 4.41KB | 2.77KB | ▼ 37.25% |
assets/screenshot-2.png | 53.78KB | 11.16KB | ▼ 79.25% |
assets/screenshot-3.png | 531.03KB | 166.38KB | ▼ 68.67% |
assets/screenshot-1.png | 95.22KB | 25.03KB | ▼ 73.72% |