Benchmarks
Plugin footprint 83% 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.06MB] [CPU: ▼1.53ms] Passed 4 tests
Server-side resources used by Add Multiple Marker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 44.02 ▲1.60 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.77 ▼7.28 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 55.83 ▲6.47 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.24 ▼2.47 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.59 ▲2.05 |
Map integration /wp-admin/admin.php?page=amm-map-integration | 3.32 | 35.47 |
Add Multiple Marker /wp-admin/admin.php?page=addmultiplemarker | 3.27 | 35.55 |
Server storage [IO: ▲7.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Multiple Marker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲110 | 13.20 ▼1.07 | 2.26 ▲0.40 | 43.39 ▼7.78 |
Dashboard /wp-admin | 2,235 ▲61 | 5.86 ▲0.22 | 89.58 ▼10.22 | 85.66 ▲39.99 |
Posts /wp-admin/edit.php | 2,163 ▲66 | 2.31 ▲0.34 | 39.53 ▲0.25 | 43.77 ▲8.57 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.48 ▲0.39 | 731.86 ▲21.74 | 34.75 ▼17.77 |
Media Library /wp-admin/upload.php | 1,446 ▲43 | 4.37 ▲0.17 | 108.35 ▲1.23 | 87.33 ▲38.23 |
Map integration /wp-admin/admin.php?page=amm-map-integration | 1,084 | 2.30 | 37.10 | 44.94 |
Add Multiple Marker /wp-admin/admin.php?page=addmultiplemarker | 1,174 | 2.28 | 37.16 | 44.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/add-multiple-marker/admin/map-integration.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-multiple-marker/functions.php:185
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/add-multiple-marker/admin/admin-options.php:4
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: map marker, multiple marker, drawing tools, multi marker, custom marker...
add-multiple-marker/addmultiplemarker.php 77% from 13 tests
"Add Multiple Marker" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("add-multiple-marker.php" instead of "addmultiplemarker.php")
- 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: If Twitter did it, so should we! Keep the description under 140 characters (currently 206 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin121,420 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 17 | 0 | 1 | 118,446 |
JavaScript | 4 | 191 | 226 | 1,227 |
CSS | 3 | 31 | 16 | 803 |
PHP | 5 | 31 | 95 | 461 |
HTML | 1 | 0 | 0 | 389 |
PO File | 1 | 38 | 39 | 94 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/amm-logo.png | 12.10KB | 6.33KB | ▼ 47.73% |
admin/images/defaultmarker.png | 2.09KB | 1.47KB | ▼ 29.61% |
admin/images/marker2.png | 2.37KB | 1.57KB | ▼ 33.73% |
admin/images/marker1.png | 2.47KB | 1.66KB | ▼ 32.65% |
admin/images/marker3.png | 2.52KB | 1.55KB | ▼ 38.38% |