10% simple-custom-google-map

Code Review | Simple Custom Google Map

WordPress plugin Simple Custom Google Map scored10%from 54 tests.

About plugin

  • Plugin page: simple-custom-goo...
  • Plugin version: 0...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: May 25, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dnljhnmrsdn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /989 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/simple-custom-google-map/index.php+91
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.35ms] Passed 4 tests

A check of server-side resources used by Simple Custom Google Map
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.75 ▼31.57
Dashboard /wp-admin2.05 ▼1.265.77 ▼42.26
Posts /wp-admin/edit.php2.05 ▼1.315.84 ▼40.80
Add New Post /wp-admin/post-new.php2.05 ▼3.845.42 ▼90.75
Media Library /wp-admin/upload.php2.05 ▼1.184.83 ▼28.11

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_scgm_map_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Simple Custom Google Map
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9814.72 ▲0.456.30 ▲4.7038.77 ▼4.07
Dashboard /wp-admin2,216 ▲315.91 ▼0.11109.84 ▲5.9076.87 ▲31.70
Posts /wp-admin/edit.php2,117 ▲282.57 ▲0.5246.87 ▲6.7337.88 ▲2.62
Add New Post /wp-admin/post-new.php1,690 ▲17023.18 ▼0.05614.83 ▼28.8528.67 ▼17.86
Media Library /wp-admin/upload.php1,413 ▲255.03 ▲0.92103.57 ▼1.1369.93 ▲23.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/simple-custom-google-map/index.php+91
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_scgm_map_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-custom-google-map/index.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === simple-custom-google-map === )
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

simple-custom-google-map/index.php 85% from 13 tests

The principal PHP file in "Simple Custom Google Map" v. 0... is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-custom-google-map.php" instead of "index.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "0...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,893 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13271611,356
PHP120341537

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions7
▷ Named functions7100.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
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
images/icon.png2.93KB0.33KB▼ 88.80%