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.03MB] [CPU: ▼4.48ms] Passed 4 tests
Analyzing server-side resources used by Address Autofill - The Plugin helps the customers to auto-fill their address
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.88 ▲8.38 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.87 ▼7.64 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.47 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.16 ▼12.75 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.83 ▲2.55 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Address Autofill - The Plugin helps the customers to auto-fill their address
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,304 ▲558 | 19.01 ▲4.73 | 51.83 ▲50.09 | 42.98 ▲0.70 |
Dashboard /wp-admin | 2,219 ▲31 | 4.86 ▼1.02 | 112.72 ▲5.65 | 43.72 ▼2.26 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.00 | 35.99 ▲0.73 | 31.59 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,538 ▲18 | 18.18 ▼5.14 | 627.07 ▼32.49 | 57.20 ▲10.47 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.22 ▼0.08 | 100.39 ▲6.10 | 42.26 ▲1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pataa-address-autofill/public/partials/addressautofill-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pataa-address-autofill/admin/partials/addressautofill-admin-settings-display.php:82
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: autofill, address, woocommerce
pataa-address-autofill/addressautofill.php 85% from 13 tests
"Address Autofill - The Plugin helps the customers to auto-fill their address" version 1.0.3'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: Please rename the main PHP file in this plugin to the plugin slug ("pataa-address-autofill.php" instead of "addressautofill.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,879 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 221 | 586 | 1,036 |
CSS | 2 | 90 | 22 | 1,021 |
JavaScript | 4 | 139 | 88 | 792 |
SVG | 5 | 0 | 0 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 4 | 10.00% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icons/view.png | 0.52KB | 0.48KB | ▼ 8.19% |
admin/img/icons/exit-top-right.png | 15.81KB | 4.45KB | ▼ 71.85% |
admin/img/icons/eye.png | 20.03KB | 7.23KB | ▼ 63.91% |
admin/img/pataa-icn.png | 3.45KB | 1.45KB | ▼ 57.96% |
admin/img/icons/hidden.png | 0.68KB | 0.76KB | 0.00% |