Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.59ms] Passed 4 tests
Analyzing server-side resources used by Nextech AR - ARitize 3D
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.14 ▲1.28 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.41 ▼15.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.07 ▼2.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.66 ▼3.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.73 ▲0.16 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_aritize3d_api_keys |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Nextech AR - ARitize 3D: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.39 ▼0.13 | 1.65 ▼0.03 | 48.50 ▲5.07 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▲0.07 | 89.98 ▼9.15 | 39.11 ▲2.13 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.15 | 40.11 ▲0.56 | 35.97 ▼3.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.13 ▲0.13 | 676.76 ▼5.57 | 69.02 ▲14.50 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.02 | 96.88 ▼15.79 | 44.23 ▼1.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_aritize3d_api_keys
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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 0% from 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/aritize-3d/aritize-3d.php
- > /wp-content/plugins/aritize-3d/includes/front-end/aritize-3d-embed-button.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/aritize-3d/includes/front-end/aritize-3d-embed-button.php:142
- > PHP Warning
Use of undefined constant ARITIZE3D_PLUGIN_DIR - assumed 'ARITIZE3D_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/aritize-3d/includes/admin/sections/custom-css.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/aritize-3d/includes/admin/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aritize-3d/class.aritize-3d-core.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aritize-3d/class.aritize-3d-integration-cli.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aritize-3d/includes/admin/sections/custom-css.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function aritize3d_get_token() in wp-content/plugins/aritize-3d/includes/admin/sections/api-tab.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/aritize-3d/includes/admin/aritize-3d.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aritize-3d/integrations/aritize-3d-custom-css.php:14
- > PHP Notice
Undefined variable: meta_data in wp-content/plugins/aritize-3d/includes/front-end/aritize-3d-embed-button.php on line 100
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #7, #8 in aritize-3d/assets to your readme.txt
aritize-3d/aritize-3d.php 92% from 13 tests
"Nextech AR - ARitize 3D" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,668 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 217 | 226 | 1,525 |
CSS | 2 | 7 | 8 | 143 |
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.25 |
Average class complexity | 8.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 44 | 61.97% |
▷ Public methods | 60 | 84.51% |
▷ Protected methods | 6 | 8.45% |
▷ Private methods | 5 | 7.04% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 63 | |
▷ Global constants | 19 | 30.16% |
▷ Class constants | 44 | 69.84% |
▷ Public constants | 44 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.69MB with 0.40MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/aritize-3d.png | 37.00KB | 13.91KB | ▼ 62.41% |
assets/images/aritize_3d_bg.png | 673.36KB | 319.57KB | ▼ 52.54% |