83% f13-google-maps-shortcode

Code Review | F13 Google Maps

WordPress plugin F13 Google Maps scored83%from 54 tests.

About plugin

  • Plugin page: f13-google-maps-s...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2016
  • Latest release: Oct 28, 2021
  • Number of updates: 10
  • Update frequency: every 192.6 days
  • Top authors: f13dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.99ms] Passed 4 tests

Server-side resources used by F13 Google Maps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.73 ▼1.30
Dashboard /wp-admin3.32 ▲0.0246.04 ▲2.11
Posts /wp-admin/edit.php3.37 ▲0.0143.56 ▼1.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.69 ▼10.55
Media Library /wp-admin/upload.php3.24 ▲0.0137.50 ▲1.38
Plugins /wp-admin/admin.php?page=f13-settings3.29457.76
Google Maps /wp-admin/admin.php?page=f13-google-maps3.2033.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

F13 Google Maps: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11513.27 ▼1.101.91 ▲0.0838.62 ▲1.72
Dashboard /wp-admin2,229 ▲404.88 ▼0.0895.57 ▼26.4741.07 ▼4.54
Posts /wp-admin/edit.php2,112 ▲202.02 ▼0.1433.97 ▼5.2033.59 ▲3.82
Add New Post /wp-admin/post-new.php1,552 ▲1523.26 ▲0.01662.79 ▼24.1558.40 ▲6.35
Media Library /wp-admin/upload.php1,411 ▲204.28 ▲0.08101.11 ▲1.4646.25 ▼1.11
Plugins /wp-admin/admin.php?page=f13-settings9272.0225.1528.90
Google Maps /wp-admin/admin.php?page=f13-google-maps8512.0525.3328.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/f13-google-maps-shortcode/google-maps-shortcode.php on line 15
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/f13-google-maps-shortcode/google-maps-shortcode.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/f13-google-maps-shortcode/google-maps-shortcode.php on line 15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (The results of adding [googlemap building="Harrods" town="London"] to a blog post.)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === f13-google-maps-shortcode === )
The official readme.txt might help

f13-google-maps-shortcode/google-maps-shortcode.php 85% from 13 tests

The main file in "F13 Google Maps" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("f13-google-maps-shortcode.php" instead of "google-maps-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected246 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53810205
Markdown118039
CSS1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.60
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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