Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.68ms] Passed 4 tests
A check of server-side resources used by Map Contact
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.74 ▲1.49 |
Dashboard /wp-admin | 3.39 ▲0.04 | 53.24 ▼9.97 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.55 ▼6.26 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.08 | 100.89 ▼7.99 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 37.78 ▲1.49 |
Add New Contact /wp-admin/admin.php?page=add_new_address | 3.29 | 38.13 |
Map Settings /wp-admin/admin.php?page=map_settings | 3.31 | 34.09 |
Address Book /wp-admin/admin.php?page=map_addressess | 3.33 | 33.35 |
Server storage [IO: ▲0.04MB] [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: 9 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_map_settings |
wp_map_addresses |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Map Contact
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲76 | 14.60 ▲0.06 | 1.90 ▲0.28 | 43.90 ▼1.01 |
Dashboard /wp-admin | 2,228 ▲51 | 5.63 ▼0.05 | 89.30 ▼8.10 | 45.93 ▲2.65 |
Posts /wp-admin/edit.php | 2,128 ▲25 | 1.98 ▲0.01 | 37.33 ▼2.71 | 37.70 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,553 ▲16 | 23.19 ▲4.93 | 620.76 ▼15.84 | 52.48 ▼12.31 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.20 ▲0.02 | 96.05 ▼10.34 | 45.32 ▼1.77 |
Add New Contact /wp-admin/admin.php?page=add_new_address | 885 | 2.13 | 24.00 | 26.39 |
Map Settings /wp-admin/admin.php?page=map_settings | 1,134 | 2.05 | 26.98 | 32.80 |
Address Book /wp-admin/admin.php?page=map_addressess | 1,051 | 2.18 | 28.74 | 33.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_map_addresses
- wp_map_settings
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=map_addressess
- > Notice in wp-content/plugins/map-contact/admin/map_addresses.php+51
Undefined index: submit
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=map_addressess
- > Notice in wp-content/plugins/map-contact/admin/map_addresses.php+129
Undefined variable: URL
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=map_settings
- > Notice in wp-content/plugins/map-contact/admin/map_settings.php+85
unserialize(): Error at offset 0 of 1 bytes
- > GET request to /wp-admin/admin.php?page=map_settings
- > Notice in wp-content/plugins/map-contact/admin/map_settings.php+85
unserialize(): Error at offset 0 of 2 bytes
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=map_settings
- > Notice in wp-content/plugins/map-contact/admin/map_settings.php+85
unserialize(): Error at offset 0 of 4 bytes
- > GET request to /wp-admin/admin.php?page=map_settings
- > Notice in wp-content/plugins/map-contact/admin/map_settings.php+85
unserialize(): Error at offset 0 of 29 bytes
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
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/map-contact/admin/map_addresses.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/map-contact/admin/map_settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/map-contact/admin/add_new_address.php:8
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/map-contact/admin/map_settings.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/map-contact/admin/map_addresses.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/map-contact/admin/map_addresses.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/map-contact/map-contact.php:11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/map-contact/admin/map_settings.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=map_addressess
- > Network (severe)
http://a1.res.cloudinary.com/hvqqwrowv/image/asset/css3-65bdc13faee51df7f05b91f44414a80d.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
map-contact/map-contact.php Passed 13 tests
The principal PHP file in "Map Contact" v. 3.0.4 is loaded by WordPress automatically on each request
91 characters long description:
Instantly create stylish and professional Contact Us Page with Map for any WordPress Theme!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected726 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 121 | 8 | 659 |
CSS | 1 | 0 | 0 | 44 |
JavaScript | 1 | 7 | 13 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 1.24KB | 0.29KB | ▼ 76.49% |