Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.84MB] [CPU: ▲2.90ms] 75% from 4 tests
This is a short check of server-side resources used by AR For WordPress
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 636.67ms on /wp-admin/post-new.php?post_type=armodels)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.80 | 46.77 ▲4.30 |
Dashboard /wp-admin | 4.18 ▲0.87 | 53.28 ▲0.45 |
Posts /wp-admin/edit.php | 4.23 ▲0.87 | 51.70 ▲2.69 |
Add New Post /wp-admin/post-new.php | 6.80 ▲0.91 | 102.91 ▲4.14 |
Media Library /wp-admin/upload.php | 4.06 ▲0.83 | 39.31 ▲6.69 |
All AR Models /wp-admin/edit.php?post_type=armodels | 4.11 | 41.29 |
Settings /wp-admin/edit.php?post_type=armodels&page= | 4.15 | 40.62 |
Add New /wp-admin/post-new.php?post_type=armodels | 6.83 | 636.67 |
AR Categories /wp-admin/edit-tags.php?taxonomy=model_category&post_type=armodels | 4.06 | 46.24 |
Whats New /wp-admin/edit.php?post_type=armodels&page=ar-whats-new | 4.03 | 37.23 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 35 new options
New WordPress options |
---|
ar_animation |
ar_disable_zoom |
ar_dimensions_units |
ar_rotate_limit |
ar_licence_renewal |
ar_css_positions |
ar_qr_destination |
ar_hide_arview |
ar_pause_file |
ar_hide_fullscreen |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AR For WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲114 | 14.68 ▼0.08 | 1.70 ▼0.07 | 32.34 ▼11.11 |
Dashboard /wp-admin | 2,262 ▲81 | 5.57 ▼0.15 | 83.41 ▼25.46 | 76.12 ▲28.54 |
Posts /wp-admin/edit.php | 2,180 ▲77 | 2.09 ▲0.10 | 38.07 ▲0.16 | 40.88 ▲4.34 |
Add New Post /wp-admin/post-new.php | 6,265 ▲4,739 | 18.87 ▼4.26 | 966.98 ▲296.51 | 37.00 ▼17.90 |
Media Library /wp-admin/upload.php | 1,473 ▲79 | 4.11 ▼0.07 | 100.30 ▲1.10 | 71.78 ▲30.44 |
All AR Models /wp-admin/edit.php?post_type=armodels | 1,173 | 1.91 | 36.21 | 43.89 |
Settings /wp-admin/edit.php?post_type=armodels&page= | 1,885 | 3.03 | 43.67 | 79.13 |
Add New /wp-admin/post-new.php?post_type=armodels | 4,056 | 18.93 | 937.76 | 106.39 |
AR Categories /wp-admin/edit-tags.php?taxonomy=model_category&post_type=armodels | 1,356 | 2.13 | 32.97 | 41.26 |
Whats New /wp-admin/edit.php?post_type=armodels&page=ar-whats-new | 995 | 2.00 | 26.76 | 33.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 35 options in the database
- ar_licence_key
- ar_animation_selection
- ar_hide_qrcode
- ar_licence_renewal
- ar_scene_viewer
- ar_hide_arview
- ar_hide_dimensions
- widget_theysaidso_widget
- ar_dimensions_inches
- ar_rotate_limit
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #13 in ar-for-wordpress/assets to your readme.txt
ar-for-wordpress/ar-wordpress.php 92% from 13 tests
"AR For WordPress" version 5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ar-for-wordpress.php" instead of "ar-wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected15,690 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 9,387 |
PHP | 13 | 586 | 567 | 4,488 |
CSS | 4 | 176 | 116 | 1,540 |
JavaScript | 6 | 58 | 60 | 237 |
Sass | 3 | 3 | 1 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 80 | |
▷ Named functions | 70 | 87.50% |
▷ Anonymous functions | 10 | 12.50% |
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
20 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ar-play-btn.png | 1.67KB | 0.82KB | ▼ 51.17% |
assets/images/menu_icon.png | 1.24KB | 0.55KB | ▼ 55.86% |
assets/images/ios.png | 13.19KB | 5.98KB | ▼ 54.63% |
assets/images/app_logo.png | 5.34KB | 2.54KB | ▼ 52.53% |
assets/images/ar-view-btn.png | 3.79KB | 2.10KB | ▼ 44.48% |