Benchmarks
Plugin footprint 65% 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.02MB] [CPU: ▼7.42ms] Passed 4 tests
Analyzing server-side resources used by Mazing AR Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.73 ▼1.66 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.66 ▼2.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.77 ▼5.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.54 ▼19.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.08 ▲12.35 |
Server storage [IO: ▲0.47MB] [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: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mazing_ar_shortcode |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Mazing AR Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.41 ▼0.97 | 1.99 ▲0.13 | 44.30 ▲1.10 |
Dashboard /wp-admin | 2,214 ▲23 | 5.07 ▼0.79 | 103.89 ▼1.01 | 63.04 ▲24.58 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.42 ▲0.44 | 35.54 ▼7.02 | 23.71 ▼11.45 |
Add New Post /wp-admin/post-new.php | 1,683 ▲164 | 22.85 ▼0.53 | 742.98 ▲71.94 | 48.97 ▼11.02 |
Media Library /wp-admin/upload.php | 1,468 ▲77 | 4.43 ▲0.23 | 125.49 ▲29.02 | 73.65 ▲28.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_mazing_ar_shortcode
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mazing-ar-shortcode/mazing-ar-shortcode.php:56
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/mazing-ar-shortcode/mazgar_displaylist.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mazing-ar-shortcode/mazgar_displaylist.php:130
- > 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
5 plugin tags: webar, 3d, augmented reality, shopping, ar
mazing-ar-shortcode/mazing-ar-shortcode.php Passed 13 tests
"Mazing AR Shortcode" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Plugin to embed Mazing Augmented Reality Experiences to your website / shop
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
Everything looks great! No dangerous files found in this plugin1,026 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 167 | 24 | 609 |
Markdown | 1 | 72 | 0 | 309 |
JavaScript | 2 | 23 | 5 | 67 |
CSS | 2 | 10 | 5 | 41 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 1.81KB | 0.36KB | ▼ 80.29% |
img/copy.png | 0.48KB | 0.28KB | ▼ 40.57% |
img/email.png | 0.64KB | 0.49KB | ▼ 23.04% |
img/help.png | 0.73KB | 0.67KB | ▼ 8.47% |
img/delete.png | 0.53KB | 0.67KB | 0.00% |