94% a360-embedder

Code Review | truevis A360 embedder

WordPress plugin truevis A360 embedder scored 94% from 54 tests.

About plugin

  • Plugin page: a360-embedder
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jul 23, 2017
  • Latest release: Jul 23, 2017
  • Number of updates: 3
  • Update frequency: every 80.3 days
  • Top authors: truevis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 907 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼345.90ms] Passed 4 tests

Server-side resources used by truevis A360 embedder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.35 ▼4.12
Dashboard /wp-admin3.42 ▲0.0135.63 ▼30.37
Posts /wp-admin/edit.php3.65 ▲0.0142.52 ▲3.49
Add New Post /wp-admin/post-new.php6.89 ▼0.0995.11 ▼1,347.09
Media Library /wp-admin/upload.php3.30 ▲0.0022.90 ▼2.02

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for truevis A360 embedder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.30 ▼0.686.79 ▼0.092.04 ▼0.28
Dashboard /wp-admin2,895 ▲346.22 ▲0.09118.11 ▼20.58158.21 ▼7.17
Posts /wp-admin/edit.php2,694 ▲73.24 ▲0.0066.10 ▼34.82140.36 ▼25.54
Add New Post /wp-admin/post-new.php1,668 ▲719.27 ▲3.71422.82 ▼8.42163.20 ▲11.46
Media Library /wp-admin/upload.php1,689 ▼125.54 ▲0.03150.08 ▼11.86231.49 ▲34.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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
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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/a360-embedder/a360-embedder.php:36

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 96% 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
There were no plugin tags found

a360-embedder/a360-embedder.php 92% from 13 tests

Analyzing the main PHP file in "truevis A360 embedder" version 0.1
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14923

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png40.81KB21.67KB▼ 46.90%
popout50.png2.02KB1.93KB▼ 4.07%