10% very-simple-google-map

Code Review | Very simple Google map

WordPress plugin Very simple Google map scored 10% from 54 tests.

About plugin

  • Plugin page: very-simple-googl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2013
  • Latest release: Nov 19, 2013
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: masumbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,219 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/very-simple-google-map/very-simple-google-map.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; gmaps has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.34ms] Passed 4 tests

Server-side resources used by Very simple Google map
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.02 ▼36.56
Dashboard /wp-admin2.09 ▼1.215.79 ▼45.03
Posts /wp-admin/edit.php2.09 ▼1.275.26 ▼45.08
Add New Post /wp-admin/post-new.php2.09 ▼3.805.94 ▼94.68
Media Library /wp-admin/upload.php2.09 ▼1.145.49 ▼28.03

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Very simple Google map
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.184.78 ▲2.8741.66 ▼1.71
Dashboard /wp-admin2,203 ▲155.83 ▲0.0499.67 ▼14.8439.51 ▼5.23
Posts /wp-admin/edit.php2,092 ▲61.98 ▼0.0739.65 ▲4.0235.19 ▲2.01
Add New Post /wp-admin/post-new.php1,533 ▲523.22 ▲4.61653.17 ▲40.4459.26 ▲7.69
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0195.52 ▼8.7941.57 ▼2.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/very-simple-google-map/very-simple-google-map.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; gmaps has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_gmaps
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/very-simple-google-map/very-simple-google-map.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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:
  • Donate link: Invalid URI ("")
  • Tags: There are too many tags (17 tag instead of maximum 10)
  • Screenshots: These screenshots require images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg)
The official readme.txt might help

very-simple-google-map/very-simple-google-map.php Passed 13 tests

"Very simple Google map" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
123 characters long description:
This is s very simple plugin for Google map. This plugin will show your location image.You can use this plugin very easily.

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
Everything looks great! No dangerous files found in this plugin67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141367

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin