84% immersive-designer

Code Review | Immersive designer

WordPress plugin Immersive designer scored84%from 54 tests.

About plugin

  • Plugin page: immersive-designer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Jan 29, 2022
  • Number of updates: 7
  • Update frequency: every 18.2 days
  • Top authors: bluegamediversion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /389 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.06MB] [CPU: ▲0.79ms] Passed 4 tests

Analyzing server-side resources used by Immersive designer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.80 ▲0.65
Dashboard /wp-admin3.36 ▲0.0552.61 ▲5.96
Posts /wp-admin/edit.php3.41 ▲0.0550.67 ▲4.65
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.77 ▼7.42
Media Library /wp-admin/upload.php3.28 ▲0.0538.16 ▲5.29
Add New /wp-admin/post-new.php?post_type=immersive_config3.3449.00
All Configurations /wp-admin/edit.php?post_type=immersive_config3.3238.49
Settings /wp-admin/edit.php?post_type=immersive_config&page=immdg3.2631.53

Server storage [IO: ▲3.07MB] [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: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Immersive designer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲21214.01 ▼0.355.89 ▲3.9743.71 ▲0.03
Dashboard /wp-admin2,242 ▲544.86 ▼0.00107.42 ▼4.7938.20 ▼5.08
Posts /wp-admin/edit.php2,119 ▲302.02 ▼0.0239.95 ▲1.1833.81 ▼0.46
Add New Post /wp-admin/post-new.php1,556 ▲2323.20 ▲2.15672.37 ▼6.7154.51 ▲1.04
Media Library /wp-admin/upload.php1,421 ▲364.16 ▼0.07104.96 ▲4.1545.61 ▲0.20
Add New /wp-admin/post-new.php?post_type=immersive_config2,1816.62157.3443.93
All Configurations /wp-admin/edit.php?post_type=immersive_config1,0951.9929.2630.28
Settings /wp-admin/edit.php?post_type=immersive_config&page=immdg8332.0424.1925.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=immersive_config
    • > Rendering (warning) in unknown
    /wp-admin/post-new.php?post_type=immersive_config - [.WebGL-0x6d000331c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: "#"
You can take inspiration from this readme.txt

immersive-designer/immdg.php 92% from 13 tests

The primary PHP file in "Immersive designer" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("immersive-designer.php" instead of "immdg.php")

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
No dangerous file extensions were detected58,710 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1041,2856,84657,253
PHP122006541,278
CSS2318179

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.88
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods3986.67%
▷ Protected methods00.00%
▷ Private methods613.33%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/checked.png15.15KB15.15KB0.01%