84% quick-maps

Code Review | Quick Maps

WordPress plugin Quick Maps scored84%from 54 tests.

About plugin

  • Plugin page: quick-maps
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9.9
  • WordPress version: 6.3.1
  • First release: Nov 24, 2019
  • Latest release: Feb 3, 2022
  • Number of updates: 40
  • Update frequency: every 20.1 days
  • Top authors: rnzo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,213 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.09ms] Passed 4 tests

A check of server-side resources used by Quick Maps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.78 ▲0.15
Dashboard /wp-admin3.39 ▲0.0849.29 ▼5.20
Posts /wp-admin/edit.php3.51 ▲0.1448.10 ▼2.40
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.96 ▼8.90
Media Library /wp-admin/upload.php3.32 ▲0.0837.62 ▲1.35
Quick Maps /wp-admin/options-general.php?page=quick_maps3.2836.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_quick_maps_widget
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Quick Maps
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.73 ▲0.561.97 ▲0.3140.96 ▼2.66
Dashboard /wp-admin2,199 ▲225.65 ▼0.0483.79 ▼8.8542.51 ▼0.35
Posts /wp-admin/edit.php2,104 ▲12.06 ▲0.0439.76 ▼3.2635.99 ▼1.47
Add New Post /wp-admin/post-new.php1,553 ▲2723.26 ▲5.79661.45 ▼24.1152.46 ▲3.43
Media Library /wp-admin/upload.php1,404 ▲14.20 ▼0.0399.96 ▼3.9544.04 ▼1.98
Quick Maps /wp-admin/options-general.php?page=quick_maps9502.1423.5029.42

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_quick_maps_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(QMAPS_PLUGIN_DIR/quick-maps.php): failed to open stream: No such file or directory in wp-content/plugins/quick-maps/lib/quick_maps_widget.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/quick-maps/settings.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/quick-maps/settings.php:21
    • > PHP Warning
      Use of undefined constant QMAPS_PLUGIN_DIR - assumed 'QMAPS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-maps/lib/settings_menu.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quick-maps/lib/wp.php:35
    • > PHP Fatal error
      require_once(): Failed opening required 'QMAPS_PLUGIN_DIR/quick-maps.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-maps/lib/settings_menu.php on line 19
    • > PHP Warning
      require_once(QMAPS_PLUGIN_DIR/quick-maps.php): failed to open stream: No such file or directory in wp-content/plugins/quick-maps/lib/settings_menu.php on line 19
    • > PHP Fatal error
      require_once(): Failed opening required 'QMAPS_PLUGIN_DIR/quick-maps.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-maps/lib/quick_maps_widget.php on line 19
    • > PHP Warning
      Use of undefined constant QMAPS_PLUGIN_DIR - assumed 'QMAPS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-maps/lib/quick_maps_widget.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ip location, geolocation, maps, google maps, quick maps...

quick-maps/quick-maps.php 92% from 13 tests

"Quick Maps" version 1.0.18's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin298 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP56984298

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.67
▷ Minimum class complexity3.00
▷ Maximum class complexity17.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin