Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.68ms] Passed 4 tests
An overview of server-side resources used by autoRetouch
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.29 ▼4.37 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.84 ▲2.27 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 51.32 ▼0.39 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.52 ▼19.97 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.64 ▼2.00 |
Settings /wp-admin/admin.php?page=wc-autoretouch-integration-sub-settings | 3.28 | 33.17 |
Submit multiple /wp-admin/admin.php?page=wc-autoretouch-integration-submit-multiple | 3.29 | 39.59 |
Job History /wp-admin/admin.php?page=wc-autoretouch-integration-sub-history | 3.27 | 36.53 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_autoretouch_jobs |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
ARI_accessToken |
ARI_selectedOrganization |
ARI_refreshToken |
widget_theysaidso_widget |
can_compress_scripts |
ARI_tokenExpiry |
Browser metrics Passed 4 tests
An overview of browser requirements for autoRetouch
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 14.78 ▲0.42 | 1.80 ▼0.09 | 42.89 ▼0.37 |
Dashboard /wp-admin | 2,288 ▲111 | 5.52 ▼0.13 | 85.96 ▼5.29 | 51.61 ▲10.89 |
Posts /wp-admin/edit.php | 2,196 ▲93 | 2.01 ▼0.08 | 34.20 ▼1.83 | 43.13 ▲7.47 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.11 ▼0.11 | 674.93 ▼24.11 | 74.70 ▲21.69 |
Media Library /wp-admin/upload.php | 1,497 ▲100 | 4.26 ▲0.06 | 98.09 ▼14.72 | 60.92 ▲10.11 |
Settings /wp-admin/admin.php?page=wc-autoretouch-integration-sub-settings | 995 | 1.66 | 29.30 | 64.77 |
Submit multiple /wp-admin/admin.php?page=wc-autoretouch-integration-submit-multiple | 730 | 1.12 | 6.70 | 25.23 |
Job History /wp-admin/admin.php?page=wc-autoretouch-integration-sub-history | 962 | 1.66 | 24.67 | 36.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_autoretouch_jobs
- Zombie WordPress options were found after uninstall: 10 options
- can_compress_scripts
- db_upgraded
- ARI_selectedOrganization
- ARI_tokenExpiry
- widget_recent-comments
- widget_recent-posts
- ARI_accessToken
- ARI_refreshToken
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=wc-autoretouch-integration-submit-multiple
- > Notice in wp-content/plugins/autoretouch/admin/wc-autoretouch-integration-admin-submit-multiple.php+15
Undefined index: post_ids
SRP 50% 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 items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function urldecode_deep() in wp-content/plugins/autoretouch/admin/wc-autoretouch-integration-admin-submit-multiple.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/autoretouch/admin/wc-autoretouch-integration-admin-display-settings.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/autoretouch/admin/wc-autoretouch-integration-admin-display-history.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== autoretouch ===
) - Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
autoretouch/wc-autoretouch-integration.php 85% from 13 tests
The principal PHP file in "autoRetouch" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("autoretouch.php" instead of "wc-autoretouch-integration.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,072 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 365 | 638 | 1,217 |
JavaScript | 4 | 70 | 0 | 421 |
CSS | 1 | 76 | 0 | 393 |
SVG | 2 | 0 | 0 | 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.20 |
Average class complexity | 6.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 77 | |
▷ Static methods | 6 | 7.79% |
▷ Public methods | 63 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 18.18% |
Functions | 4 | |
▷ Named functions | 4 | 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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin