83% wp-3d-thingviewer-lite

Code Review | WP 3D Thingviewer Lite

WordPress plugin WP 3D Thingviewer Lite scored83%from 54 tests.

About plugin

  • Plugin page: wp-3d-thingviewer...
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 33
  • Update frequency: every 50.1 days
  • Top authors: accolore (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /4,776 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.35ms] Passed 4 tests

This is a short check of server-side resources used by WP 3D Thingviewer Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1647.85 ▲4.78
Dashboard /wp-admin3.44 ▲0.0956.31 ▼10.25
Posts /wp-admin/edit.php3.55 ▲0.1951.53 ▲2.99
Add New Post /wp-admin/post-new.php6.02 ▲0.1489.54 ▼6.03
Media Library /wp-admin/upload.php3.36 ▲0.1338.87 ▼0.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP 3D Thingviewer Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲13614.43 ▲0.1214.42 ▲12.6047.90 ▲4.03
Dashboard /wp-admin2,209 ▲214.86 ▼0.16116.79 ▼0.9144.30 ▼0.16
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0134.22 ▲0.3334.44 ▼4.52
Add New Post /wp-admin/post-new.php6,311 ▲4,79225.34 ▲2.17879.87 ▲212.3659.25 ▲7.56
Media Library /wp-admin/upload.php1,504 ▲1164.45 ▲0.30102.83 ▼16.8346.37 ▼1.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
Good news, no errors were detected

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-3d-thingviewer-lite/public/partials/thingviewer-shortcode.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: A description for screenshot #6 is required in wp-3d-thingviewer-lite/assets to your readme.txt
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

wp-3d-thingviewer-lite/wp-3d-thingviewer-lite.php 92% from 13 tests

Analyzing the main PHP file in "WP 3D Thingviewer Lite" version 3.2
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 205 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected9,106 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript154,7627968,098
PHP14178640586
Markdown2920212
CSS13129210

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.67
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods715.91%
▷ Public methods3886.36%
▷ Protected methods00.00%
▷ Private methods613.64%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/wp3dtv-icon.png0.61KB0.75KB0.00%
public/images/wp3dtv-wc-icon.png8.61KB3.44KB▼ 60.06%