Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼312.42ms] Passed 4 tests
A check of server-side resources used by 360 View
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 55.36 ▲5.05 |
Dashboard /wp-admin | 3.47 ▲0.06 | 32.07 ▼52.61 |
Posts /wp-admin/edit.php | 3.69 ▲0.06 | 34.61 ▼5.47 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 98.03 ▼1,187.67 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 24.80 ▼3.91 |
Server storage [IO: ▲5.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for 360 View
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,914 ▲166 | 16.20 ▲0.42 | 9.12 ▲3.33 | 3.22 ▲1.11 |
Dashboard /wp-admin | 2,902 ▲41 | 6.17 ▲0.08 | 156.56 ▲21.14 | 170.39 ▲4.70 |
Posts /wp-admin/edit.php | 2,695 ▲1 | 3.25 ▲0.00 | 61.12 ▼6.51 | 132.61 ▼12.27 |
Add New Post /wp-admin/post-new.php | 1,675 ▲35 | 16.95 ▼3.54 | 407.90 ▼17.16 | 198.32 ▲24.99 |
Media Library /wp-admin/upload.php | 1,699 ▲1 | 5.55 ▲0.06 | 150.01 ▲8.00 | 223.77 ▲32.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/360-view/360-view-util.php
- > /wp-content/plugins/360-view/360-view.php
- > /wp-content/plugins/360-view/src/init.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
360-view/360-view.php Passed 13 tests
The main PHP file in "360 View" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Easily embed any number of 360-degree images and/or videos into your blog posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,946 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 733 | 264 | 2,503 |
JSON | 2 | 0 | 0 | 230 |
PHP | 3 | 16 | 10 | 98 |
CSS | 3 | 9 | 23 | 66 |
Sass | 3 | 9 | 1 | 49 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin