84% 3d-xr-library

Code Review | WordPress 3d Model Viewer

WordPress plugin WordPress 3d Model Viewer scored84%from 54 tests.

About plugin

  • Plugin page: 3d-xr-library
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2021
  • Latest release: Apr 5, 2023
  • Number of updates: 20
  • Update frequency: every 33.6 days
  • Top authors: viitorcloudvc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /774 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.51ms] Passed 4 tests

Server-side resources used by WordPress 3d Model Viewer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0432.49 ▼6.73
Dashboard /wp-admin3.35 ▲0.0548.28 ▲2.65
Posts /wp-admin/edit.php3.47 ▲0.1149.36 ▲3.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.25 ▼1.79
Media Library /wp-admin/upload.php3.25 ▲0.0335.33 ▼0.17
All 3D Model /wp-admin/edit.php?post_type=vc3dmodels3.3241.55
Add New /wp-admin/post-new.php?post_type=vc3dmodels3.3147.07

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress 3d Model Viewer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,246 ▲48916.25 ▲1.88197.43 ▲195.2452.54 ▲11.48
Dashboard /wp-admin2,374 ▲2196.47 ▲0.78120.00 ▲25.0339.39 ▼1.66
Posts /wp-admin/edit.php2,277 ▲1883.32 ▲1.3354.95 ▲12.3035.82 ▲2.06
Add New Post /wp-admin/post-new.php1,704 ▲17624.55 ▲6.13585.38 ▼9.9138.57 ▼18.12
Media Library /wp-admin/upload.php1,413 ▲224.16 ▼0.1984.59 ▼13.9944.74 ▲1.49
All 3D Model /wp-admin/edit.php?post_type=vc3dmodels1,2613.4047.8226.42
Add New /wp-admin/post-new.php?post_type=vc3dmodels1,7313.6062.4935.01

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

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

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
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3d-xr-library/3d-xr-library.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration Passed 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
2 plugin tags: animation, 3dxrlibrary

3d-xr-library/3d-xr-library.php Passed 13 tests

The main PHP file in "WordPress 3d Model Viewer" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Use this shortcode [3dmodelviewer] to display 3D Model.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin11,866 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
PNG images were not found in this plugin