83% 360-sphere-images

Code Review | 360 Photo Spheres

WordPress plugin 360 Photo Spheres scored83%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: 6.3.1
  • 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

200+ active /5,462 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by 360 Photo Spheres
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /53.21 ▲49.7010,285,712.85 ▲10,285,666.97
Dashboard /wp-admin3.37 ▲0.0354.72 ▲2.04
Posts /wp-admin/edit.php3.43 ▲0.0250.23 ▼4.47
Add New Post /wp-admin/post-new.php5.96 ▲0.0286.32 ▼22.90
Media Library /wp-admin/upload.php3.30 ▲0.0239.11 ▲1.25

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by 360 Photo Spheres
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.141.69 ▲0.0243.92 ▼2.16
Dashboard /wp-admin2,198 ▲215.56 ▼0.0389.19 ▼16.2140.92 ▼3.90
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0037.64 ▼0.2135.24 ▲0.06
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.28679.16 ▼26.7867.15 ▲5.28
Media Library /wp-admin/upload.php1,397 ▼64.20 ▲0.03103.27 ▼2.9741.71 ▼2.88

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
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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 everything seems fine, this is not 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #0, #0 in 360-sphere-images/assets to your readme.txt
  • Screenshots: These screenshots do not have images: #1 (screenshot1.jpg), #2 (screenshot2.jpg)
The official readme.txt might help

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

The entry point to "360 Photo Spheres" version 1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("360-sphere-images.php" instead of "sphere.php")
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112132

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
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
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%
Constants0
▷ 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
PNG images were not found in this plugin