Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.38ms] Passed 4 tests
An overview of server-side resources used by VISUAL INSPECTOR BY CANVASFLIP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 42.12 ▲2.34 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.78 ▲1.67 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.85 ▲0.04 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.02 ▼9.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 38.04 ▲4.19 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
VISUAL INSPECTOR BY CANVASFLIP: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲57 | 13.33 ▼1.05 | 1.76 ▼0.15 | 42.52 ▼3.30 |
Dashboard /wp-admin | 2,218 ▲32 | 4.87 ▼0.12 | 110.93 ▲0.20 | 43.43 ▼4.04 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.01 | 33.71 ▼2.67 | 35.15 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,555 ▲35 | 23.53 ▲0.25 | 655.07 ▼37.65 | 52.20 ▼0.64 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.18 ▼0.03 | 93.86 ▼2.08 | 40.63 ▼3.34 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/visual-inspector-sync/includes/viPluginProjects.php:7
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (**Login Panel.** Login into visual inspector to see your projects.), #2 (**WordPress website project** Your WordPress website project will appear here, where you can sync your css styles directly into your website.), #3 (**Other website projects** Other website projects will appear here.), #4 (**No WordPress website project** If you haven't edited your WordPress website project by using Visual Inspector.), #5 (**No projects found** If no projects found in your Visual Inspector account), #6 (**Mobile view disabled** If you try to open Visual Inspector plugin from mobile or tablet browser.)
- Tags: There are too many tags (20 tag instead of maximum 10)
visual-inspector-sync/viPlugin.php 77% from 13 tests
"VISUAL INSPECTOR BY CANVASFLIP" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("visual-inspector-sync.php" instead of "viPlugin.php")
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
Everything looks great! No dangerous files found in this plugin2,267 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 19 | 13 | 933 |
JavaScript | 4 | 85 | 71 | 708 |
SVG | 19 | 0 | 11 | 389 |
PHP | 2 | 37 | 32 | 237 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/empty-icon.png | 7.57KB | 2.95KB | ▼ 61.10% |
assets/images/empty.png | 11.88KB | 8.08KB | ▼ 31.98% |
assets/images/vi-complete.png | 1.01KB | 0.59KB | ▼ 41.42% |
assets/images/rsz_vi_logo.png | 3.73KB | 2.24KB | ▼ 39.99% |
assets/images/vi_logo.png | 5.04KB | 2.60KB | ▼ 48.41% |