10% rock-maps-for-divi

Code Review | Rock Maps for Divi

WordPress plugin Rock Maps for Divi scored 10% from 54 tests.

About plugin

  • Plugin page: rock-maps-for-divi
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Sep 8, 2023
  • Latest release: Sep 11, 2023
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: renzocastillo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 55 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.19 ▼6.79
Dashboard /wp-admin3.31 ▲0.0045.37 ▼7.46
Posts /wp-admin/edit.php3.36 ▲0.0047.32 ▼1.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.94 ▲4.03
Media Library /wp-admin/upload.php3.23 ▲0.0034.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.27 ▲0.041.69 ▼0.3340.00 ▼3.78
Dashboard /wp-admin2,206 ▲215.85 ▼0.00100.80 ▼17.1843.41 ▼6.20
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0341.13 ▲4.2735.12 ▼2.11
Add New Post /wp-admin/post-new.php1,514 ▼2017.41 ▼5.67657.46 ▼54.4258.93 ▲0.82
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0496.66 ▼4.3144.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP591289988
PO File181113196
JavaScript30036
SVG22027
HTML11014
CSS4004

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 code0.22
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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