Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/rock-maps-for-divi/divi-rock-maps.php+53
Uncaught Error: Call to undefined function et_get_option() in wp-content/plugins/rock-maps-for-divi/divi-rock-maps.php:53
Stack trace:
#0 wp-includes/class-wp-hook.php(310): dirm_activate()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.42ms] Passed 4 tests
An overview of server-side resources used by Rock Maps for Divi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.19 ▼6.79 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.37 ▼7.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.32 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.94 ▲4.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.36 ▲1.64 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Rock Maps for Divi
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.27 ▲0.04 | 1.69 ▼0.33 | 40.00 ▼3.78 |
Dashboard /wp-admin | 2,206 ▲21 | 5.85 ▼0.00 | 100.80 ▼17.18 | 43.41 ▼6.20 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.03 | 41.13 ▲4.27 | 35.12 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.41 ▼5.67 | 657.46 ▼54.42 | 58.93 ▲0.82 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.04 | 96.66 ▼4.31 | 44.70 ▼0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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 items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/rock-maps-for-divi/includes/modules/StaticMap/class-dirm-divirockstaticmap.php:15
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/rock-maps-for-divi/includes/modules/StaticMapMarker/class-dirm-divirockstaticmapmarker.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/rock-maps-for-divi/divi-rock-maps.php:28
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/rock-maps-for-divi/includes/class-dirm-divirockmaps.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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: maps, google map, leaflet map
rock-maps-for-divi/divi-rock-maps.php 85% from 13 tests
The main file in "Rock Maps for Divi" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to 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
- Main file name: The principal plugin file should be the same as the plugin slug ("rock-maps-for-divi.php" instead of "divi-rock-maps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,265 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 91 | 289 | 988 |
PO File | 1 | 81 | 113 | 196 |
JavaScript | 3 | 0 | 0 | 36 |
SVG | 2 | 2 | 0 | 27 |
HTML | 1 | 1 | 0 | 14 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin