83% panorama-block

Code Review | Panorama - Panorama, 360 Degree image viewer

WordPress plugin Panorama - Panorama, 360 Degree image viewer scored83%from 54 tests.

About plugin

  • Plugin page: panorama-block
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 15, 2021
  • Latest release: Oct 3, 2023
  • Number of updates: 25
  • Update frequency: every 26.3 days
  • Top authors: charlescormier (48%)abuhayat (36%)srabonr (24%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.81ms] Passed 4 tests

This is a short check of server-side resources used by Panorama - Panorama, 360 Degree image viewer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.16 ▲2.26
Dashboard /wp-admin3.34 ▲0.0351.40 ▲3.83
Posts /wp-admin/edit.php3.39 ▲0.0347.70 ▼1.84
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.35 ▼16.99
Media Library /wp-admin/upload.php3.26 ▲0.0335.72 ▲1.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Panorama - Panorama, 360 Degree image viewer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.39 ▼0.171.95 ▲0.1545.33 ▲5.26
Dashboard /wp-admin2,195 ▲185.56 ▼0.1184.49 ▼11.5539.57 ▼3.92
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0235.89 ▼1.8738.69 ▲2.67
Add New Post /wp-admin/post-new.php6,375 ▲4,83829.95 ▲11.56907.11 ▲245.4436.32 ▼27.26
Media Library /wp-admin/upload.php1,397 ▼64.21 ▼0.03100.14 ▼4.6841.89 ▼5.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant BPGB_VERSION - assumed 'BPGB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/panorama-block/dist/editor.asset.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #5 (Output) image required
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

panorama-block/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Panorama - Panorama, 360 Degree image viewer" version 1.0.4
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("panorama-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,653 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4031,332
CSS3114105
JSON20098
PO File1244166
PHP3151552

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin