84% coon-google-maps

Code Review | Coon Google Maps

WordPress plugin Coon Google Maps scored84%from 54 tests.

About plugin

  • Plugin page: coon-google-maps
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2015
  • Latest release: Feb 3, 2015
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: Andrico (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /943 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.99ms] Passed 4 tests

This is a short check of server-side resources used by Coon Google Maps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0246.18 ▲1.42
Dashboard /wp-admin3.58 ▼0.0551.52 ▼13.50
Posts /wp-admin/edit.php3.70 ▲0.0250.74 ▼3.23
Add New Post /wp-admin/post-new.php6.17 ▲0.0289.87 ▼16.66
Media Library /wp-admin/upload.php3.51 ▲0.0240.07 ▲2.35

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coon Google Maps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲4314.61 ▲0.217.32 ▲5.3043.18 ▲2.63
Dashboard /wp-admin2,194 ▲175.61 ▼0.02105.64 ▲13.7244.44 ▲0.45
Posts /wp-admin/edit.php2,065 ▼322.67 ▲0.6640.43 ▲4.1031.46 ▼3.12
Add New Post /wp-admin/post-new.php1,684 ▲15323.10 ▼0.16602.52 ▼83.7745.96 ▼23.42
Media Library /wp-admin/upload.php1,408 ▲85.01 ▲0.81112.45 ▲4.6646.09 ▼1.70

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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)
Even though no errors were found, 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coon-google-maps/coon-google-maps.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === coon-google-maps === )
Please take inspiration from this readme.txt

coon-google-maps/coon-google-maps.php Passed 13 tests

The main file in "Coon Google Maps" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
You can insert google maps in your site. It's very easy to use, and you can show routes, markers.

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
There were no executable files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17778

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin