Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼20.91ms] Passed 4 tests
A check of server-side resources used by IA Map Analytics Basic
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 39.29 ▼9.96 |
Dashboard /wp-admin | 3.36 ▲0.02 | 34.52 ▼31.78 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 37.31 ▼14.66 |
Add New Post /wp-admin/post-new.php | 5.63 ▼0.25 | 75.06 ▼27.24 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 33.87 ▼3.67 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 474 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_map_analytics_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IA Map Analytics Basic
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 15.02 ▲0.72 | 9.64 ▲7.74 | 41.67 ▼3.01 |
Dashboard /wp-admin | 2,219 ▲31 | 5.93 ▲1.06 | 118.46 ▲2.09 | 88.35 ▲44.10 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.72 ▲0.66 | 45.71 ▲8.33 | 37.44 ▼2.49 |
Add New Post /wp-admin/post-new.php | 7,497 ▲5,983 | 22.65 ▲4.93 | 1,137.21 ▲448.49 | 55.92 ▲1.28 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 5.14 ▲0.92 | 103.80 ▼6.45 | 83.88 ▲37.84 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_map_analytics_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ia-map-analytics-basic/ia-mapanalytics.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #6 in ia-map-analytics-basic/assets to your readme.txt
ia-map-analytics-basic/ia-mapanalytics.php 85% from 13 tests
Analyzing the main PHP file in "IA Map Analytics Basic" version 20170413...
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ia-map-analytics-basic.php" instead of "ia-mapanalytics.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "20170413...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin12,305 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,244 | 2,234 | 10,294 |
PHP | 2 | 389 | 145 | 1,877 |
SVG | 5 | 0 | 4 | 111 |
CSS | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
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
458 compressed PNG files occupy 0.69MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/markers/grocerystore.shadow.png | 0.53KB | 0.63KB | 0.00% |
images/markers/marina.png | 1.09KB | 1.38KB | 0.00% |
images/markers/icon29.png | 0.64KB | 0.59KB | ▼ 8.40% |
images/markers/icon17(2).png | 2.34KB | 1.86KB | ▼ 20.53% |
images/markers/purple-dot.png | 1.32KB | 1.08KB | ▼ 18.29% |