94% royal-google-maps

Code Review | Royal Google Maps

WordPress plugin Royal Google Maps scored 94% from 54 tests.

About plugin

  • Plugin page: royal-google-maps
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Mar 2, 2014
  • Latest release: Mar 2, 2014
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: royaltechbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 3,686 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼138.96ms] Passed 4 tests

Analyzing server-side resources used by Royal Google Maps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1428.24 ▲6.56
Dashboard /wp-admin3.09 ▲0.0352.63 ▲4.97
Posts /wp-admin/edit.php3.14 ▲0.0343.33 ▼0.12
Add New Post /wp-admin/post-new.php5.45 ▲0.0187.92 ▼558.74
Media Library /wp-admin/upload.php3.03 ▲0.0331.27 ▼1.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Royal Google Maps: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11316.51 ▲0.8117.40 ▲6.3950.38 ▲0.45
Dashboard /wp-admin2,970 ▲395.84 ▼0.16146.29 ▼1.75115.94 ▲9.87
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0068.95 ▼10.4882.20 ▼8.86
Add New Post /wp-admin/post-new.php1,872 ▲18919.11 ▲0.36401.88 ▼12.26110.58 ▲4.23
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.05152.02 ▲9.83114.54 ▲0.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/royal-google-maps/royal-google-maps.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
The official readme.txt might help

royal-google-maps/royal-google-maps.php 92% from 13 tests

The main file in "Royal Google Maps" v. 1.0.0 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:
  • Description: Keep the plugin description shorter than 140 characters (currently 290 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin404 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14330249
JavaScript11216155

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
gmap.png2.60KB1.66KB▼ 36.41%