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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▲0.54ms] Passed 4 tests
An overview of server-side resources used by Autocomplete NextGenAPI Address
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 30.97 ▼11.15 |
Dashboard /wp-admin | 4.00 ▲0.69 | 56.56 ▲10.75 |
Posts /wp-admin/edit.php | 4.02 ▲0.66 | 53.41 ▲4.25 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 92.97 ▲0.66 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 43.20 ▲8.38 |
Server storage [IO: ▲2.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 345 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Autocomplete NextGenAPI Address
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲180 | 13.64 ▼0.66 | 5.06 ▲3.24 | 38.74 ▼11.44 |
Dashboard /wp-admin | 2,233 ▲42 | 5.94 ▲0.00 | 110.77 ▲10.24 | 37.27 ▼8.27 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.09 ▲0.12 | 38.29 ▼0.17 | 33.77 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,551 ▲22 | 23.36 ▲5.08 | 680.20 ▲62.27 | 67.06 ▲0.46 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.29 ▲0.04 | 99.06 ▼0.29 | 44.79 ▼0.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/address-autocomplete-using-nextgenapi/autocomplete-nextgenapi-address.php
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/example-functions.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/address-autocomplete-using-nextgenapi/cmb2/includes/CMB2.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
address-autocomplete-using-nextgenapi/autocomplete-nextgenapi-address.php 69% from 13 tests
This is the main PHP file of "Autocomplete NextGenAPI Address" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 386 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("address-autocomplete-using-nextgenapi.php" instead of "autocomplete-nextgenapi-address.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected46,403 lines of code in 203 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 59 | 2,159 | 6,383 | 7,298 |
CSS | 13 | 251 | 1,195 | 4,543 |
JavaScript | 9 | 376 | 610 | 1,563 |
Markdown | 2 | 219 | 0 | 676 |
PHP code Passed 2 tests
Analyzing 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.48 |
Average class complexity | 18.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 9 | 13.24% |
▷ Concrete classes | 59 | 86.76% |
▷ Final classes | 0 | 0.00% |
Methods | 536 | |
▷ Static methods | 88 | 16.42% |
▷ Public methods | 444 | 82.84% |
▷ Protected methods | 89 | 16.60% |
▷ Private methods | 3 | 0.56% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 6 | 50.00% |
▷ Class constants | 6 | 50.00% |
▷ Public constants | 6 | 100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |