84% 360-view

Code Review | 360 View

WordPress plugin 360 View scored84%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: 6.3.1
  • 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

4 reviews

Install metrics

900+ active /6,509 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.21ms] Passed 4 tests

Analyzing server-side resources used by 360 View
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0834.38 ▼9.35
Dashboard /wp-admin3.37 ▲0.0646.19 ▼10.37
Posts /wp-admin/edit.php3.42 ▲0.0646.95 ▼6.64
Add New Post /wp-admin/post-new.php5.97 ▲0.0995.83 ▲9.82
Media Library /wp-admin/upload.php3.29 ▲0.0639.13 ▲5.51

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for 360 View
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.73 ▼0.645.47 ▲3.2041.54 ▼0.94
Dashboard /wp-admin2,214 ▲264.91 ▼0.9899.88 ▼14.1540.47 ▼2.60
Posts /wp-admin/edit.php2,094 ▲22.16 ▲0.1140.31 ▲5.0635.77 ▲1.41
Add New Post /wp-admin/post-new.php6,255 ▲4,74119.96 ▲2.27930.26 ▲302.7065.97 ▲11.30
Media Library /wp-admin/upload.php1,393 ▲54.34 ▲0.1794.25 ▼2.3341.43 ▼1.78

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/360-view/360-view.php
    • > /wp-content/plugins/360-view/src/init.php
    • > /wp-content/plugins/360-view/360-view-util.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

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

The primary PHP file in "360 View" version 1.1.0 is used by WordPress to initiate all plugin functionality
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 | An overview of files in this plugin; executable files are not allowed
There were no executable 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

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin