83% visual-inspector-sync

Code Review | VISUAL INSPECTOR BY CANVASFLIP

WordPress plugin VISUAL INSPECTOR BY CANVASFLIP scored83%from 54 tests.

About plugin

  • Plugin page: visual-inspector-...
  • Plugin version: 0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: May 14, 2018
  • Latest release: May 14, 2018
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: canvasflip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,096 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.12 ▲2.34
Dashboard /wp-admin3.32 ▲0.0247.78 ▲1.67
Posts /wp-admin/edit.php3.37 ▲0.0148.85 ▲0.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.02 ▼9.58
Media Library /wp-admin/upload.php3.25 ▲0.0138.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.33 ▼1.051.76 ▼0.1542.52 ▼3.30
Dashboard /wp-admin2,218 ▲324.87 ▼0.12110.93 ▲0.2043.43 ▼4.04
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0133.71 ▼2.6735.15 ▼0.78
Add New Post /wp-admin/post-new.php1,555 ▲3523.53 ▲0.25655.07 ▼37.6552.20 ▼0.64
Media Library /wp-admin/upload.php1,400 ▲94.18 ▼0.0393.86 ▼2.0840.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

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)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS21913933
JavaScript48571708
SVG19011389
PHP23732237

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 code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/empty-icon.png7.57KB2.95KB▼ 61.10%
assets/images/empty.png11.88KB8.08KB▼ 31.98%
assets/images/vi-complete.png1.01KB0.59KB▼ 41.42%
assets/images/rsz_vi_logo.png3.73KB2.24KB▼ 39.99%
assets/images/vi_logo.png5.04KB2.60KB▼ 48.41%