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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.17 ▼1.19 |
Dashboard /wp-admin | 3.38 ▲0.03 | 51.18 ▼12.41 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.77 ▼3.93 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.47 ▼21.85 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.78 ▲0.66 |
Add presentation /wp-admin/admin.php?page=market360-viewer-upload | 3.27 | 31.62 |
Market360 presentation details /wp-admin/options.php?page=market360-presentation-details-page | 3.31 | 35.37 |
All 360 presentations /wp-admin/admin.php?page=market360-viewer | 3.27 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 13.83 ▼0.46 | 8.31 ▲6.55 | 43.26 ▼1.48 |
Dashboard /wp-admin | 2,206 ▲32 | 5.52 ▼0.13 | 95.58 ▲7.73 | 73.65 ▲31.68 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.99 ▼0.02 | 36.05 ▼6.08 | 34.59 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 18.14 ▼4.99 | 718.00 ▲38.58 | 60.77 ▼5.92 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.17 ▼0.04 | 98.26 ▼16.25 | 73.46 ▲24.25 |
Add presentation /wp-admin/admin.php?page=market360-viewer-upload | 829 | 2.16 | 26.51 | 31.44 |
Market360 presentation details /wp-admin/options.php?page=market360-presentation-details-page | 806 | 2.14 | 25.98 | 26.16 |
All 360 presentations /wp-admin/admin.php?page=market360-viewer | 989 | 2.03 | 27.56 | 30.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 514 | 189 | 2,374 |
PHP | 1 | 99 | 40 | 416 |
CSS | 1 | 48 | 15 | 226 |
HTML | 1 | 0 | 5 | 11 |
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 code | 0.26 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
engine/images/informacje.png | 2.75KB | 1.99KB | ▼ 27.63% |
engine/images/pomniejsz_over.png | 1.76KB | 1.32KB | ▼ 25.15% |
engine/images/lewo_info_over.png | 2.39KB | 1.82KB | ▼ 24.09% |
engine/images/ramka_over.png | 2.17KB | 1.60KB | ▼ 26.43% |
engine/images/pelny_ekran_over.png | 2.10KB | 1.56KB | ▼ 25.69% |