73% canvasio3d-light

Code Review | canvasio3D Light

WordPress plugin canvasio3D Lightscored73%from 54 tests.

About plugin

  • Plugin page: canvasio3d-light
  • Plugin version: 2.4.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 5, 2015
  • Latest release: Oct 13, 2023
  • Number of updates: 228
  • Update frequency: every 13.0 days
  • Top authors: virtuellwerk (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /53,658 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.59ms] Passed 4 tests

Analyzing server-side resources used by canvasio3D Light
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.94 ▲3.91
Dashboard /wp-admin3.47 ▲0.1759.29 ▲12.37
Posts /wp-admin/edit.php3.59 ▲0.2450.92 ▲1.15
Add New Post /wp-admin/post-new.php6.04 ▲0.1583.69 ▼14.16
Media Library /wp-admin/upload.php3.38 ▲0.1539.03 ▲6.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 78 new files
Database: 1 new table, 7 new options
New tables
wp_ca3D_Model
New WordPress options
db_upgraded
widget_recent-comments
canvasio3D_ID
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for canvasio3D Light
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,041 ▲28014.79 ▲0.245.44 ▲3.7043.97 ▲2.57
Dashboard /wp-admin2,328 ▲1516.19 ▲0.52119.92 ▲33.59103.65 ▲56.56
Posts /wp-admin/edit.php2,274 ▲1743.30 ▲1.3148.12 ▲11.6666.73 ▲29.31
Add New Post /wp-admin/post-new.php1,689 ▲16122.44 ▼0.83649.79 ▲1.4236.95 ▼19.51
Media Library /wp-admin/upload.php1,416 ▲194.08 ▼0.0980.70 ▼22.5467.61 ▲23.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_ca3D_Model
  • This plugin does not fully uninstall, leaving 7 options in the database
    • canvasio3D_ID
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/canvasio3d-light/inc/caData.inc.php

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: A description for screenshot #0 is required in canvasio3d-light/assets to your readme.txt
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === canvasio3D Light=== )
The official readme.txt is a good inspiration

canvasio3d-light/canvasio3D.php 92% from 13 tests

The main PHP file in "canvasio3D Light" ver. 2.4.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("canvasio3d-light.php" instead of "canvasio3D.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin6,618 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript207553732,835
PO File131,1731,3722,329
PHP30148998
CSS100456

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods417.39%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.22MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/assets/icons/caBack.png1.27KB1.24KB▼ 2.53%
inc/assets/icons/caWindow.png1.20KB1.12KB▼ 6.45%
inc/css/caHandPointer.png12.28KB4.50KB▼ 63.34%
inc/assets/icons/caButtons.png1.34KB1.27KB▼ 5.40%
inc/assets/icons/caData.png0.63KB0.53KB▼ 15.31%