78% ogulo-360-tour

Code Review | Ogulo - 360° Tour

WordPress plugin Ogulo - 360° Tour scored78%from 54 tests.

About plugin

  • Plugin page: ogulo-360-tour
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.0
  • WordPress version: 6.3.1
  • First release: Jun 17, 2020
  • Latest release: Aug 23, 2023
  • Number of updates: 21
  • Update frequency: every 55.4 days
  • Top authors: ogulo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,237 total downloads

Benchmarks

Plugin footprint 83% from 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.19MB] [CPU: ▼7.51ms] Passed 4 tests

This is a short check of server-side resources used by Ogulo - 360° Tour
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2145.78 ▲5.32
Dashboard /wp-admin3.49 ▲0.1951.36 ▼2.61
Posts /wp-admin/edit.php3.61 ▲0.2550.98 ▼7.05
Add New Post /wp-admin/post-new.php6.08 ▲0.1991.73 ▼20.06
Media Library /wp-admin/upload.php3.42 ▲0.1937.77 ▼0.33
Logs /wp-admin/admin.php?page=ogulo-360-tour-log3.3934.82
Ogulo /wp-admin/admin.php?page=ogulo-360-tour3.4031.72

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 8 new options
New WordPress options
widget_ogulo_tours_widget
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
ogulo_provider
theysaidso_admin_options

Browser metrics Passed 4 tests

Ogulo - 360° Tour: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.50 ▼0.7811.42 ▲9.5942.87 ▼2.06
Dashboard /wp-admin2,222 ▲485.65 ▲0.0795.90 ▲5.4141.76 ▼4.08
Posts /wp-admin/edit.php2,130 ▲272.02 ▼0.0034.67 ▼3.5035.18 ▲0.73
Add New Post /wp-admin/post-new.php1,549 ▲2322.99 ▼0.53658.98 ▼38.6966.80 ▲12.16
Media Library /wp-admin/upload.php1,430 ▲304.17 ▼0.0299.61 ▼5.0245.99 ▲3.28
Logs /wp-admin/admin.php?page=ogulo-360-tour-log8741.9922.5024.51
Ogulo /wp-admin/admin.php?page=ogulo-360-tour1,0592.1641.3439.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • ogulo_provider
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_ogulo_tours_widget

Smoke tests 50% 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 0% 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 output text when accessed directly:
    • > /wp-content/plugins/ogulo-360-tour/public/view/ogulo-360-tour-public-display.php
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ogulo-360-tour/view/admin/tours.php:38
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ogulo-360-tour/view/admin/settings.php on line 4
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ogulo-360-tour/view/admin/settings.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ogulo-360-tour/view/admin/log.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ogulo-360-tour/view/admin/log.php:7
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ogulo-360-tour/view/admin/log.php on line 2
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ogulo-360-tour/view/admin/log.php on line 4
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ogulo-360-tour/view/admin/settings.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ogulo-360-tour/includes/class-ogulo-360-tour-widget.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ogulo-360-tour/view/admin/settings.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === ogulo-360-tour === )
The official readme.txt might help

ogulo-360-tour/ogulo-360-tour.php Passed 13 tests

"Ogulo - 360° Tour" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
With the Ogulo Plugin you can easily integrate your tours into Wordpress.

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 plugin1,864 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP193237351,008
CSS3696326
JavaScript35615325
PO File26476180
SVG10125

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.45
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods4887.27%
▷ Protected methods00.00%
▷ Private methods712.73%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/sort_desc.png0.15KB0.25KB0.00%
admin/images/ogulo.png36.26KB12.13KB▼ 66.54%
admin/images/sort_asc.png0.16KB0.25KB0.00%
admin/images/sort_both.png0.20KB0.29KB0.00%
public/images/ogulo.png32.32KB12.39KB▼ 61.66%