93% 3dvieweronline-wp

Code Review | 3DVieweronline

WordPress plugin 3DVieweronline scored 93% from 54 tests.

About plugin

  • Plugin page: 3dvieweronline-wp
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.2
  • WordPress version: 5.9.2
  • First release: Aug 29, 2016
  • Latest release: Aug 5, 2020
  • Number of updates: 49
  • Update frequency: every 29.4 days
  • Top authors: 3dvieweronline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,985 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼298.66ms] Passed 4 tests

An overview of server-side resources used by 3DVieweronline
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2354.36 ▲4.90
Dashboard /wp-admin3.58 ▲0.1733.87 ▲1.08
Posts /wp-admin/edit.php3.80 ▲0.1637.44 ▲1.41
Add New Post /wp-admin/post-new.php7.04 ▲0.0790.53 ▼1,197.85
Media Library /wp-admin/upload.php3.45 ▲0.1624.54 ▲0.72

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for 3DVieweronline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,925 ▲18116.29 ▲0.6214.42 ▲8.002.14 ▼0.22
Dashboard /wp-admin2,924 ▲636.09 ▼0.03118.90 ▼16.20176.79 ▲17.24
Posts /wp-admin/edit.php2,719 ▲283.14 ▼0.1064.55 ▼0.44143.78 ▲1.01
Add New Post /wp-admin/post-new.php1,694 ▲3316.73 ▲0.73390.55 ▼28.44183.75 ▲19.26
Media Library /wp-admin/upload.php1,728 ▲305.55 ▲0.02127.43 ▼12.69207.00 ▲20.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/3dvieweronline-wp/admin/partials/threedvieweronline-iframe-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: 3d product viewer, 3dvieweronline, 3d model viewer, 3d viewer, 3d e-commerce...

3dvieweronline-wp/threedvieweronline-iframe.php 77% from 13 tests

Analyzing the main PHP file in "3DVieweronline" version 2.0.0
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3dvieweronline-wp.php" instead of "threedvieweronline-iframe.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 detected15,627 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short 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.32
Average class complexity11.57
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods35.00%
▷ Public methods5388.33%
▷ Protected methods00.00%
▷ Private methods711.67%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/custom-icon.png1.53KB0.29KB▼ 80.80%
assets/images/logo.png0.46KB0.41KB▼ 12.24%
assets/images/icon.png1.03KB0.56KB▼ 46.07%