Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼262.77ms] Passed 4 tests
Analyzing server-side resources used by Theasys
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 31.54 ▲9.17 |
Dashboard /wp-admin | 3.13 ▲0.08 | 44.59 ▲3.14 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 40.98 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 92.58 ▼1,046.14 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 32.44 ▼4.12 |
Information /wp-admin/admin.php?page=theasys_information | 3.05 | 27.94 |
Settings /wp-admin/admin.php?page=theasys_settings | 3.05 | 31.00 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 1 new option
New WordPress options |
---|
theasys |
Browser metrics Passed 4 tests
Theasys: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,727 ▲145 | 16.19 ▲0.34 | 9.21 ▲0.61 | 49.44 ▼0.88 |
Dashboard /wp-admin | 2,975 ▲122 | 7.03 ▲1.27 | 140.61 ▲0.19 | 130.03 ▲32.68 |
Posts /wp-admin/edit.php | 2,779 ▲73 | 2.76 ▲0.08 | 71.23 ▲12.09 | 125.74 ▲40.39 |
Add New Post /wp-admin/post-new.php | 1,875 ▲224 | 22.22 ▲4.82 | 301.55 ▼74.29 | 132.33 ▲21.83 |
Media Library /wp-admin/upload.php | 1,768 ▼7 | 5.18 ▲0.19 | 140.05 ▼7.61 | 129.13 ▼0.23 |
Information /wp-admin/admin.php?page=theasys_information | 1,080 | 2.69 | 64.40 | 61.85 |
Settings /wp-admin/admin.php?page=theasys_settings | 1,103 | 2.57 | 63.08 | 81.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- theasys
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/theasys/admin/partials/theasys-admin-display-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/theasys/admin/partials/theasys-admin-display-information.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 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
10 plugin tags: theasys, 360 virtual tour, 360, theasysio, virtual reality...
theasys/theasys.php Passed 13 tests
The principal PHP file in "Theasys" v. 1.0.1 is loaded by WordPress automatically on each request
95 characters long description:
Theasys is a plugin that lets you easily embed your Theasys.io Tours to your Wordpress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected773 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 239 | 7 | 381 |
PHP | 14 | 163 | 367 | 374 |
CSS | 1 | 0 | 7 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/cover.png | 170.92KB | 185.45KB | 0.00% |
admin/images/logo.png | 6.41KB | 4.09KB | ▼ 36.21% |
admin/images/icon_logo.png | 1.20KB | 0.63KB | ▼ 47.51% |