93% 360-sphere-images

Code Review | 360 Photo Spheres

WordPress plugin 360 Photo Spheres scored 93% from 54 tests.

About plugin

  • Plugin page: 360-sphere-images
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 5.9.2
  • First release: May 10, 2018
  • Latest release: Feb 20, 2020
  • Number of updates: 41
  • Update frequency: every 16.0 days
  • Top authors: mrgoodfellow (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 4,608 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by 360 Photo Spheres
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.04 ▼4.56
Dashboard /wp-admin3.41 ▲0.0033.23 ▼1.80
Posts /wp-admin/edit.php3.64 ▲0.0036.93 ▼0.91
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.36 ▼1,198.09
Media Library /wp-admin/upload.php3.29 ▲0.0025.60 ▲0.15

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for 360 Photo Spheres
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.78 ▲0.186.28 ▼0.882.28 ▼0.69
Dashboard /wp-admin2,873 ▲126.06 ▼0.16117.84 ▼14.86155.23 ▼8.80
Posts /wp-admin/edit.php2,691 ▲33.24 ▼0.0067.63 ▲4.71144.78 ▲3.89
Add New Post /wp-admin/post-new.php1,708 ▼922.70 ▲0.95395.53 ▼43.74163.10 ▲3.62
Media Library /wp-admin/upload.php1,701 ▲35.51 ▲0.02145.89 ▲3.09183.19 ▼4.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | This is a shallow check for server-side errors
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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/360-sphere-images/sphere.php:145

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot1.jpg), #2 (screenshot2.jpg)
  • Screenshots: These screenshots need descriptions #0, #0 in 360-sphere-images/assets to your readme.txt
You can look at the official readme.txt

360-sphere-images/sphere.php 69% from 13 tests

Analyzing the main PHP file in "360 Photo Spheres" version 1.3
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("360-sphere-images.php" instead of "sphere.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis 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.12
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 functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin