Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.05ms] Passed 4 tests
Server-side resources used by wp-pano
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.00 ▼2.90 |
Dashboard /wp-admin | 3.46 ▲0.15 | 50.28 ▲0.91 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.41 ▼1.20 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 89.77 ▼16.99 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 40.73 ▲4.10 |
WP-Pano /wp-admin/options-general.php?page=wp-pano-setup-page | 3.33 | 32.17 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 41 new files
Database: 1 new table, 15 new options
New tables |
---|
wp_wppano_hotspots |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
wppano_target_container |
wppano_vtourpath |
can_compress_scripts |
wppano_vtourxml |
wppano_db_version |
wppano_posttype |
widget_theysaidso_widget |
wppano_vtourswf |
... |
Browser metrics Passed 4 tests
wp-pano: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 13.81 ▼0.91 | 8.48 ▲6.84 | 43.45 ▲2.16 |
Dashboard /wp-admin | 2,209 ▲29 | 5.63 ▲0.04 | 88.90 ▼3.94 | 37.94 ▼5.79 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 2.00 ▼0.02 | 40.83 ▼2.03 | 35.14 ▼6.43 |
Add New Post /wp-admin/post-new.php | 6,325 ▲4,799 | 19.03 ▼4.56 | 942.37 ▲310.31 | 56.78 ▲7.06 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.14 ▼0.08 | 112.55 ▲10.03 | 49.20 ▲1.61 |
WP-Pano /wp-admin/options-general.php?page=wp-pano-setup-page | 1,340 | 1.70 | 27.18 | 55.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wppano_hotspots
- This plugin did not uninstall successfully, leaving 15 options in the database
- wppano_vtourswf
- user_script_after
- wppano_db_version
- can_compress_scripts
- wppano_vtourxml
- theysaidso_admin_options
- wppano_posttype
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-pano-setup-page
- > Notice in wp-content/plugins/wp-pano/inc/view/admin-settings.php+83
Uninitialized string offset: 0
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 take a closer look at the following
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-pano/wp-pano.php
- > /wp-content/plugins/wp-pano/inc/front.php
- > /wp-content/plugins/wp-pano/inc/admin.php
- > /wp-content/plugins/wp-pano/inc/view/wp-pano-head.php
- > /wp-content/plugins/wp-pano/inc/startxml.php
- > /wp-content/plugins/wp-pano/inc/view/front-pano.php
- > /wp-content/plugins/wp-pano/inc/view/admin-add-hotspots.php
- > /wp-content/plugins/wp-pano/inc/db.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-pano/templates/fixedwidth.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-pano/templates/standard.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-pano/templates/gallery.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-pano/templates/fit-size.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-pano/templates/thumbnail.php:1
- > PHP Notice
Undefined variable: xml_url in wp-content/plugins/wp-pano/inc/startxml.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-pano/templates/longpage.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/wp-pano/inc/view/admin-renderpano.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pano/inc/view/admin-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/wp-pano/inc/view/admin-rendererror.php:4
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-pano ===
) - Requires at least: The plugin version is formatted incorrectly
wp-pano/wp-pano.php Passed 13 tests
"wp-pano" version 1.17's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
The content manager for the krpano Panorama Viewer
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,251 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 84 | 38 | 1,062 |
JavaScript | 6 | 114 | 90 | 782 |
XML | 2 | 29 | 0 | 216 |
CSS | 2 | 26 | 1 | 191 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
8 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
xml/hs_info_title.png | 2.85KB | 0.27KB | ▼ 90.55% |
xml/hs_gallery.png | 4.78KB | 1.70KB | ▼ 64.36% |
xml/hs_video.png | 5.96KB | 2.02KB | ▼ 66.13% |
xml/hs_photo.png | 5.34KB | 1.88KB | ▼ 64.81% |
img/arrows-hover.png | 18.72KB | 0.57KB | ▼ 96.94% |