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.05MB] [CPU: ▼5.17ms] Passed 4 tests
A check of server-side resources used by Shared Vision Light
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 32.78 ▼5.54 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.18 ▲1.37 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.30 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 77.56 ▼14.88 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 33.65 ▼1.61 |
Shared Vision /wp-admin/options-general.php?page=sharedvision-settings | 3.27 | 30.55 |
Server storage [IO: ▲2.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shared Vision Light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲108 | 14.33 ▼0.02 | 64.76 ▲63.09 | 43.68 ▼0.48 |
Dashboard /wp-admin | 2,199 ▲28 | 5.62 ▼0.04 | 93.92 ▼4.12 | 41.48 ▼0.48 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.07 | 40.49 ▲0.87 | 38.18 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 22.97 ▼0.19 | 624.86 ▼7.50 | 54.66 ▲3.79 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.23 ▲0.02 | 102.96 ▲7.98 | 43.71 ▼1.27 |
Shared Vision /wp-admin/options-general.php?page=sharedvision-settings | 811 | 2.16 | 22.74 | 25.87 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× 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-light/templates/admin/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shared-vision-light/templates/embed.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== shared-vision-light ===
) - Screenshots: Add images for these screenshots: #1 (Shared Vision plugin settings), #2 (Shared Vision widget with simple design), #3 (Shared Vision widget with more elaborate design)
- Tags: The plugin tags were not defined
shared-vision-light/sharedvision.php 92% from 13 tests
This is the main PHP file of "Shared Vision Light" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shared-vision-light.php" instead of "sharedvision.php")
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
Success! There were no dangerous files found in this plugin300 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 124 | 45 | 300 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 10 | 43.48% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 2.57MB with 1.90MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 695.49KB | 180.38KB | ▼ 74.06% |
assets/screenshot-1.png | 95.22KB | 25.03KB | ▼ 73.72% |
assets/screenshot-2.png | 1,839.66KB | 478.96KB | ▼ 73.96% |