74% market-360-viewer

Code Review | Market 360 Viewer

WordPress plugin Market 360 Viewer scored74%from 54 tests.

About plugin

  • Plugin page: market-360-viewer
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 23, 2014
  • Latest release: Nov 24, 2014
  • Number of updates: 10
  • Update frequency: every 4.1 days
  • Top authors: market360 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,264 total downloads

Benchmarks

Plugin footprint 65% 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.06MB] [CPU: ▼9.84ms] Passed 4 tests

Server-side resources used by Market 360 Viewer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.17 ▼1.19
Dashboard /wp-admin3.38 ▲0.0351.18 ▼12.41
Posts /wp-admin/edit.php3.49 ▲0.1348.77 ▼3.93
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.47 ▼21.85
Media Library /wp-admin/upload.php3.30 ▲0.0736.78 ▲0.66
Add presentation /wp-admin/admin.php?page=market360-viewer-upload3.2731.62
Market360 presentation details /wp-admin/options.php?page=market360-presentation-details-page3.3135.37
All 360 presentations /wp-admin/admin.php?page=market360-viewer3.2736.20

Server storage [IO: ▲0.23MB] [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: 36 new files
Database: 1 new table, 7 new options
New tables
wp_m360_presentations
New WordPress options
can_compress_scripts
m360_db_version
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Market 360 Viewer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13513.83 ▼0.468.31 ▲6.5543.26 ▼1.48
Dashboard /wp-admin2,206 ▲325.52 ▼0.1395.58 ▲7.7373.65 ▲31.68
Posts /wp-admin/edit.php2,108 ▲81.99 ▼0.0236.05 ▼6.0834.59 ▼0.65
Add New Post /wp-admin/post-new.php1,570 ▲4218.14 ▼4.99718.00 ▲38.5860.77 ▼5.92
Media Library /wp-admin/upload.php1,429 ▲294.17 ▼0.0498.26 ▼16.2573.46 ▲24.25
Add presentation /wp-admin/admin.php?page=market360-viewer-upload8292.1626.5131.44
Market360 presentation details /wp-admin/options.php?page=market360-presentation-details-page8062.1425.9826.16
All 360 presentations /wp-admin/admin.php?page=market360-viewer9892.0327.5630.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_m360_presentations
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • m360_db_version

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/market-360-viewer/market360-viewer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: gallery, viewer, packshot, spin, presentation...

market-360-viewer/market360-viewer.php 92% from 13 tests

The primary PHP file in "Market 360 Viewer" version 1.01 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("market-360-viewer.php" instead of "market360-viewer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,027 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45141892,374
PHP19940416
CSS14815226
HTML10511

PHP code Passed 2 tests

An overview 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.26
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
23 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
engine/images/informacje.png2.75KB1.99KB▼ 27.63%
engine/images/pomniejsz_over.png1.76KB1.32KB▼ 25.15%
engine/images/lewo_info_over.png2.39KB1.82KB▼ 24.09%
engine/images/ramka_over.png2.17KB1.60KB▼ 26.43%
engine/images/pelny_ekran_over.png2.10KB1.56KB▼ 25.69%