94% 360-view

Code Review | 360 View

WordPress plugin 360 View scored 94% from 54 tests.

About plugin

  • Plugin page: 360-view
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 5.9.2
  • First release: Aug 4, 2020
  • Latest release: May 29, 2021
  • Number of updates: 11
  • Update frequency: every 27.1 days
  • Top authors: mikhalchuk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active / 4,233 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼312.42ms] Passed 4 tests

A check of server-side resources used by 360 View
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0655.36 ▲5.05
Dashboard /wp-admin3.47 ▲0.0632.07 ▼52.61
Posts /wp-admin/edit.php3.69 ▲0.0634.61 ▼5.47
Add New Post /wp-admin/post-new.php6.93 ▼0.0498.03 ▼1,187.67
Media Library /wp-admin/upload.php3.34 ▲0.0524.80 ▼3.91

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 360 View
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,914 ▲16616.20 ▲0.429.12 ▲3.333.22 ▲1.11
Dashboard /wp-admin2,902 ▲416.17 ▲0.08156.56 ▲21.14170.39 ▲4.70
Posts /wp-admin/edit.php2,695 ▲13.25 ▲0.0061.12 ▼6.51132.61 ▼12.27
Add New Post /wp-admin/post-new.php1,675 ▲3516.95 ▼3.54407.90 ▼17.16198.32 ▲24.99
Media Library /wp-admin/upload.php1,699 ▲15.55 ▲0.06150.01 ▲8.00223.77 ▲32.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/360-view/360-view-util.php
    • > /wp-content/plugins/360-view/360-view.php
    • > /wp-content/plugins/360-view/src/init.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

360-view/360-view.php Passed 13 tests

The main PHP file in "360 View" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Easily embed any number of 360-degree images and/or videos into your blog posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,946 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript57332642,503
JSON200230
PHP3161098
CSS392366
Sass39149

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin