90% vision

Code Review | Vision - Image Map Builder

WordPress plugin Vision - Image Map Builder scored90%from 54 tests.

About plugin

  • Plugin page: vision
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2018
  • Latest release: Sep 13, 2023
  • Number of updates: 83
  • Update frequency: every 21.2 days
  • Top authors: avirtum (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /38,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.45MB] [CPU: ▼1.00ms] Passed 4 tests

A check of server-side resources used by Vision - Image Map Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3039.56 ▲4.83
Dashboard /wp-admin3.81 ▲0.5146.30 ▲3.10
Posts /wp-admin/edit.php3.92 ▲0.5750.68 ▲6.19
Add New Post /wp-admin/post-new.php6.39 ▲0.5083.79 ▼18.11
Media Library /wp-admin/upload.php3.73 ▲0.5038.28 ▲6.23
Settings /wp-admin/admin.php?page=vision_settings3.7138.08
All Items /wp-admin/admin.php?page=vision3.9233.12
Add New /wp-admin/admin.php?page=vision_item4.0937.32

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 435 new files
Database: 1 new table, 6 new options
New tables
wp_vision
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Vision - Image Map Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.67 ▼0.691.61 ▼0.0237.68 ▲0.29
Dashboard /wp-admin2,237 ▲495.91 ▲0.00107.15 ▼9.3236.66 ▼10.05
Posts /wp-admin/edit.php2,120 ▲342.04 ▲0.0441.55 ▲5.5435.19 ▲1.55
Add New Post /wp-admin/post-new.php1,553 ▲3423.16 ▼0.11669.90 ▲31.4452.36 ▼9.64
Media Library /wp-admin/upload.php1,422 ▲344.23 ▲0.01107.48 ▲5.2847.64 ▲1.37
Settings /wp-admin/admin.php?page=vision_settings1,6362.4043.2939.71
All Items /wp-admin/admin.php?page=vision1,2041.8727.1936.75
Add New /wp-admin/admin.php?page=vision_item4,4709.72197.1081.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: real estate, image map, visual presentation, floor plan

vision/vision.php 92% from 13 tests

"Vision - Image Map Builder" version 1.7.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "4.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin8,925 lines of code in 423 files:
LanguageFilesBlank linesComment linesLines of code
PHP163803472,898
SVG2012,735
JavaScript396381102,690
PO File1259285594
CSS80278

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity63.50
▷ Minimum class complexity4.00
▷ Maximum class complexity153.00
Average method complexity5.46
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods56
▷ Static methods00.00%
▷ Public methods5598.21%
▷ Protected methods00.00%
▷ Private methods11.79%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/desktop.png0.19KB0.13KB▼ 33.67%
assets/images/mobile.png0.18KB0.11KB▼ 38.38%
assets/images/image.png0.26KB0.16KB▼ 39.54%
assets/images/tablet.png0.17KB0.11KB▼ 34.83%