90% snazzy-maps

Code Review | Snazzy Maps

WordPress plugin Snazzy Maps scored90%from 54 tests.

About plugin

  • Plugin page: snazzy-maps
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 1, 2015
  • Latest release: Mar 28, 2021
  • Number of updates: 40
  • Update frequency: every 55.6 days
  • Top authors: atmistinc (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

50,000+ active /473,471 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼7.65ms] Passed 4 tests

Server-side resources used by Snazzy Maps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.2650.11 ▲0.93
Dashboard /wp-admin3.84 ▲0.2855.42 ▼2.16
Posts /wp-admin/edit.php3.89 ▲0.2150.13 ▼4.65
Add New Post /wp-admin/post-new.php6.36 ▲0.2188.55 ▼24.71
Media Library /wp-admin/upload.php3.70 ▲0.2142.32 ▲4.01
Snazzy Maps /wp-admin/themes.php?page=snazzy_maps3.6737.02

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Snazzy Maps: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.43 ▲0.052.11 ▲0.3244.28 ▼0.81
Dashboard /wp-admin2,199 ▲225.70 ▲0.0189.58 ▼8.3739.93 ▼7.36
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0137.22 ▼0.3634.67 ▼0.61
Add New Post /wp-admin/post-new.php1,548 ▲1623.22 ▲0.15632.02 ▼58.1751.34 ▼4.61
Media Library /wp-admin/upload.php1,401 ▲44.25 ▲0.0297.91 ▼11.7142.86 ▼5.19
Snazzy Maps /wp-admin/themes.php?page=snazzy_maps1,4672.2037.0933.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: themes, maps, google, color, google maps...

snazzy-maps/snazzymaps.php 92% from 13 tests

The main PHP file in "Snazzy Maps" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("snazzy-maps.php" instead of "snazzymaps.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,275 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP8199333959
JavaScript5226191
SVG808124
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity19.10
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity6.66
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods32
▷ Static methods2268.75%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
PNG images were not found in this plugin