84% sm-google-maps

Code Review | SM Google Maps

WordPress plugin SM Google Maps scored 84% from 54 tests.

About plugin

  • Plugin page: sm-google-maps
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.8.1
  • WordPress version: 5.8.1
  • First release: Oct 12, 2017
  • Latest release: Oct 12, 2017
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: mahabubs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by SM Google Maps
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1244.64 ▲19.07
Dashboard /wp-admin3.07 ▲0.0144.63 ▼5.66
Posts /wp-admin/edit.php3.12 ▲0.0148.67 ▲13.22
Add New Post /wp-admin/post-new.php5.43 ▲0.0096.56 ▼590.38
Media Library /wp-admin/upload.php3.01 ▲0.0030.59 ▼10.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_smgooglemaps_widget

Browser metrics Passed 4 tests

An overview of browser requirements for SM Google Maps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.92 ▲0.558.30 ▼0.6150.92 ▼6.07
Dashboard /wp-admin2,967 ▲365.90 ▼0.01143.62 ▼12.43117.33 ▲0.20
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0072.78 ▲2.61102.43 ▲6.03
Add New Post /wp-admin/post-new.php1,591 ▼9218.73 ▼0.07377.01 ▼84.62111.31 ▼20.97
Media Library /wp-admin/upload.php1,810 ▼05.03 ▼0.01174.07 ▲9.51128.68 ▼7.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 1 option in the database
    • widget_smgooglemaps_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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× 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/sm-google-maps/sm-google-maps.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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: The official readme.txt is a good inspiration

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

"SM Google Maps" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Google Maps plugin for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin111 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11533111

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin