Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▲3.54ms] Passed 4 tests
This is a short check of server-side resources used by AR For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.79 | 43.38 ▲7.75 |
Dashboard /wp-admin | 4.11 ▲0.80 | 52.04 ▲3.01 |
Posts /wp-admin/edit.php | 4.23 ▲0.86 | 55.30 ▲2.74 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.84 | 93.14 ▲0.67 |
Media Library /wp-admin/upload.php | 4.06 ▲0.82 | 41.47 ▲8.50 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 35 new options
New WordPress options |
---|
ar_hide_arview |
ar_rotate_limit |
theysaidso_admin_options |
ar_licence_renewal |
ar_hide_qrcode |
ar_dimensions_units |
ar_scene_viewer |
ar_qr_file |
ar_wl_file |
widget_ar_for_woocommerce_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for AR For Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲75 | 14.37 ▲0.03 | 1.64 ▲0.01 | 28.00 ▼10.66 |
Dashboard /wp-admin | 2,238 ▲58 | 5.57 ▼0.05 | 94.86 ▼0.47 | 87.33 ▲43.05 |
Posts /wp-admin/edit.php | 2,147 ▲44 | 2.08 ▲0.08 | 40.74 ▼0.46 | 41.09 ▲6.93 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,700 | 19.23 ▼5.66 | 1,031.01 ▲398.78 | 39.67 ▼31.50 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.20 ▼0.00 | 94.91 ▲0.12 | 83.17 ▲42.12 |
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
These items require your attention
- The uninstall procedure has failed, leaving 35 options in the database
- ar_dimensions_units
- ar_hide_dimensions
- ar_licence_key
- theysaidso_admin_options
- widget_theysaidso_widget
- ar_fullscreen_file
- ar_open_tabs_remember
- ar_open_tabs
- ar_hide_arview
- ar_licence_renewal
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #13 in ar-for-woocommerce/assets to your readme.txt
ar-for-woocommerce/ar-woocommerce.php 92% from 13 tests
"AR For Woocommerce" version 5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ar-for-woocommerce.php" instead of "ar-woocommerce.php")
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
Good job! No executable or dangerous file extensions detected13,687 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,845 |
PHP | 13 | 631 | 589 | 4,729 |
CSS | 4 | 91 | 63 | 822 |
JavaScript | 6 | 58 | 60 | 236 |
Sass | 3 | 3 | 1 | 38 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 2 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 76 | |
▷ Named functions | 64 | 84.21% |
▷ Anonymous functions | 12 | 15.79% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 0.27MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/copy.png | 0.41KB | 0.43KB | 0.00% |
assets/images/green-tick.png | 126.89KB | 12.42KB | ▼ 90.21% |
assets/images/reset.png | 1.19KB | 1.33KB | 0.00% |
assets/images/ar-pause-btn.png | 1.59KB | 0.82KB | ▼ 48.44% |
assets/images/ar-play-btn.png | 1.67KB | 0.82KB | ▼ 51.17% |