89% sugar-event-calendar-google-maps

Code Review | Sugar Calendar - Google Maps

WordPress plugin Sugar Calendar - Google Maps scored89%from 54 tests.

About plugin

  • Plugin page: sugar-event-calen...
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 6.3.1
  • First release: Sep 25, 2012
  • Latest release: Oct 22, 2020
  • Number of updates: 19
  • Update frequency: every 155.3 days
  • Top authors: mordauk (63.16%)johnjamesjacoby (42.11%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /8,856 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.64ms] Passed 4 tests

A check of server-side resources used by Sugar Calendar - Google Maps
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0325.62 ▼18.97
Dashboard /wp-admin3.35 ▲0.0548.02 ▼4.78
Posts /wp-admin/edit.php3.40 ▲0.0550.46 ▼2.77
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.85 ▼12.04
Media Library /wp-admin/upload.php3.27 ▲0.0540.63 ▲2.24

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Sugar Calendar - Google Maps
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼28113.44 ▼1.240.54 ▼1.5018.15 ▼24.40
Dashboard /wp-admin2,206 ▲184.87 ▼0.04119.08 ▲5.8739.98 ▼4.04
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0441.08 ▲1.1832.22 ▼4.54
Add New Post /wp-admin/post-new.php1,533 ▲1323.09 ▼0.17680.25 ▲18.5165.66 ▼2.75
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.08113.65 ▲0.8949.19 ▼1.00

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

sugar-event-calendar-google-maps/sugar-calendar-maps.php 85% from 13 tests

The principal PHP file in "Sugar Calendar - Google Maps" v. 1.4.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("sugar-event-calendar-google-maps.php" instead of "sugar-calendar-maps.php")

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 plugin255 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102180255

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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 files were detected