72% basemapper

Code Review | Boldmapper

WordPress plugin Boldmapper scored72%from 54 tests.

About plugin

  • Plugin page: basemapper
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: Jul 25, 2021
  • Number of updates: 40
  • Update frequency: every 10.6 days
  • Top authors: basemapper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,060 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.43ms] Passed 4 tests

A check of server-side resources used by Boldmapper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.36 ▲4.33
Dashboard /wp-admin3.38 ▲0.0359.20 ▼3.60
Posts /wp-admin/edit.php3.49 ▲0.1370.17 ▲11.70
Add New Post /wp-admin/post-new.php5.98 ▲0.09115.09 ▲8.34
Media Library /wp-admin/upload.php3.30 ▲0.0743.61 ▼10.79
Boldmapper /wp-admin/options-general.php?page=boldmapper3.2736.50

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_boldmapper_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Boldmapper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5414.61 ▲0.262.07 ▼0.1448.79 ▼6.04
Dashboard /wp-admin2,200 ▲235.56 ▼0.08105.14 ▲7.4747.75 ▲4.73
Posts /wp-admin/edit.php2,108 ▲52.03 ▲0.0547.89 ▲6.9543.21 ▲3.52
Add New Post /wp-admin/post-new.php1,533 ▲723.15 ▲0.14737.22 ▲8.6363.86 ▲10.80
Media Library /wp-admin/upload.php1,405 ▲54.23 ▲0.07108.19 ▼39.1253.98 ▼7.02
Boldmapper /wp-admin/options-general.php?page=boldmapper8211.9928.3627.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_boldmapper_widget

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=boldmapper
    • > Notice in wp-content/plugins/basemapper/admin/partials/boldmapper-admin-display.php+26
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/basemapper/public/partials/boldmapper-public-display.php
    • > /wp-content/plugins/basemapper/trunk/public/partials/boldmapper-public-display.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/basemapper/trunk/includes/class-boldmapper-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/basemapper/trunk/admin/partials/boldmapper-admin-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/basemapper/admin/partials/boldmapper-admin-display.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/basemapper/includes/class-boldmapper-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

basemapper/boldmapper.php 85% from 13 tests

The principal PHP file in "Boldmapper" v. 2.0.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("basemapper.php" instead of "boldmapper.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected267 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13160585261
JavaScript24546
CSS2080

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods66
▷ Static methods46.06%
▷ Public methods5684.85%
▷ Protected methods00.00%
▷ Private methods1015.15%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin