89% google-maps-skeleton

Code Review | Google Maps Shell

WordPress plugin Google Maps Shell scored89%from 54 tests.

About plugin

  • Plugin page: google-maps-skeleton
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Dec 12, 2012
  • Latest release: Dec 12, 2012
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: technosailor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Google Maps Shell
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.32 ▼1.93
Dashboard /wp-admin3.32 ▲0.0143.86 ▼7.48
Posts /wp-admin/edit.php3.37 ▲0.0142.10 ▼2.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.38 ▼12.12
Media Library /wp-admin/upload.php3.24 ▲0.0133.02 ▼2.14

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Google Maps Shell
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.401.73 ▲0.0639.82 ▼2.16
Dashboard /wp-admin2,209 ▲214.84 ▼0.25103.45 ▼11.0640.96 ▼4.71
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0236.32 ▼2.4833.70 ▼1.30
Add New Post /wp-admin/post-new.php1,542 ▼018.75 ▲0.60628.92 ▼57.3054.29 ▼7.33
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0294.78 ▼11.5540.86 ▼1.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === google-maps-skeleton === )
Please take inspiration from this readme.txt

google-maps-skeleton/ab-google-maps.php 85% from 13 tests

This is the main PHP file of "Google Maps Shell" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("google-maps-skeleton.php" instead of "ab-google-maps.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1167110

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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 functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin