84% vuelio-canvas

Code Review | Vuelio Canvas

WordPress plugin Vuelio Canvas scored84%from 54 tests.

About plugin

  • Plugin page: vuelio-canvas
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2016
  • Latest release: Nov 21, 2016
  • Number of updates: 8
  • Update frequency: every 3.8 days
  • Top authors: aaronbery (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /437 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.24ms] Passed 4 tests

This is a short check of server-side resources used by Vuelio Canvas
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.39 ▼1.86
Dashboard /wp-admin3.32 ▲0.0244.92 ▼5.66
Posts /wp-admin/edit.php3.37 ▲0.0242.88 ▼3.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.87 ▼0.00
Media Library /wp-admin/upload.php3.24 ▲0.0134.10 ▼1.75

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_canvaswidget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Vuelio Canvas
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.34 ▼0.961.75 ▼0.0838.70 ▼7.20
Dashboard /wp-admin2,209 ▲214.83 ▼0.0797.14 ▼17.7038.17 ▼8.31
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0334.01 ▼1.6532.58 ▼2.72
Add New Post /wp-admin/post-new.php1,542 ▲2318.35 ▼4.54644.64 ▼28.4456.47 ▲5.63
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.1695.78 ▼17.4841.23 ▼6.72

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_canvaswidget
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Please take a closer look at the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vuelio-canvas/canvasWidget.php:2
    • > PHP Warning
      Use of undefined constant CANVAS__PLUGIN_DIR - assumed 'CANVAS__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/vuelio-canvas/class.canvas.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'CANVAS__PLUGIN_DIRcanvasWidget.php' (include_path='.:/usr/share/php') in wp-content/plugins/vuelio-canvas/class.canvas.php on line 2
    • > PHP Warning
      require_once(CANVAS__PLUGIN_DIRcanvasWidget.php): failed to open stream: No such file or directory in wp-content/plugins/vuelio-canvas/class.canvas.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vuelio-canvas/vuelio-canvas.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #20, #22 in vuelio-canvas/assets to your readme.txt
You can take inspiration from this readme.txt

vuelio-canvas/vuelio-canvas.php Passed 13 tests

Analyzing the main PHP file in "Vuelio Canvas" version 1.0
62 characters long description:
a plugin to insert the responsive Vuelio Canvas into your blog

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
Good job! No executable or dangerous file extensions detected181 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41714120
CSS11041
JavaScript11020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/vuelio-logo.png57.67KB15.92KB▼ 72.39%